We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4b09baa commit 33fcd11Copy full SHA for 33fcd11
lib/system/sysstr.nim
@@ -254,6 +254,8 @@ proc nimFloatToStr(x: float): string {.compilerproc.} =
254
var buf: array [0..59, char]
255
c_sprintf(buf, "%#.f", x)
256
result = $buf
257
+ if result[len(result)-1] == '.':
258
+ result.add("0")
259
260
proc nimInt64ToStr(x: int64): string {.compilerRtl.} =
261
result = newString(sizeof(x)*4)
0 commit comments