This commit is contained in:
Araq
2014-07-22 20:15:57 +02:00
parent d195f08da0
commit 6219ad6a66

View File

@@ -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] = '.'