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.
.f
.16e
1 parent a158053 commit 4b09baaCopy full SHA for 4b09baa
lib/system/sysstr.nim
@@ -252,8 +252,8 @@ proc nimIntToStr(x: int): string {.compilerRtl.} =
252
253
proc nimFloatToStr(x: float): string {.compilerproc.} =
254
var buf: array [0..59, char]
255
- c_sprintf(buf, "%#.16e", x)
256
- return $buf
+ c_sprintf(buf, "%#.f", x)
+ result = $buf
257
258
proc nimInt64ToStr(x: int64): string {.compilerRtl.} =
259
result = newString(sizeof(x)*4)
0 commit comments