From 6219ad6a66fc164a2dc27f9285590648d68bab3a Mon Sep 17 00:00:00 2001 From: Araq Date: Tue, 22 Jul 2014 20:15:57 +0200 Subject: [PATCH] fixes #1391 --- lib/system/sysstr.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/system/sysstr.nim b/lib/system/sysstr.nim index b3dc9c14eb..9db8ce378e 100644 --- a/lib/system/sysstr.nim +++ b/lib/system/sysstr.nim @@ -258,7 +258,7 @@ proc nimFloatToStr(f: float): string {.compilerproc.} = if buf[i] == ',': buf[i] = '.' hasDot = true - elif buf[i] in {'e', 'E', '.'}: + elif buf[i] in {'a'..'z', 'A'..'Z', '.'}: hasDot = true if not hasDot: buf[n] = '.'