mirror of
https://github.com/nim-lang/Nim.git
synced 2026-07-20 07:51:32 +00:00
fixes #1391
This commit is contained in:
@@ -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] = '.'
|
||||
|
||||
Reference in New Issue
Block a user