diff options
author | Dominik Picheta <dominikpicheta@googlemail.com> | 2014-04-20 22:35:17 +0100 |
---|---|---|
committer | Dominik Picheta <dominikpicheta@googlemail.com> | 2014-04-20 22:35:17 +0100 |
commit | ca2b73f64a9ed49f4914dcf37bfa1b3727317f6b (patch) | |
tree | c4c7f313a4449aab8d3a71e1717407b1298b00b3 /lib | |
parent | 443fdd6d694b4fe5508fff12394aca62855fa684 (diff) | |
download | Nim-ca2b73f64a9ed49f4914dcf37bfa1b3727317f6b.tar.gz |
Revert 4b09baa0a and 33fcd1123.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/system/sysstr.nim | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/system/sysstr.nim b/lib/system/sysstr.nim index eb9d2000b..4244bae4c 100644 --- a/lib/system/sysstr.nim +++ b/lib/system/sysstr.nim @@ -252,10 +252,8 @@ proc nimIntToStr(x: int): string {.compilerRtl.} = proc nimFloatToStr(x: float): string {.compilerproc.} = var buf: array [0..59, char] - c_sprintf(buf, "%#.f", x) - result = $buf - if result[len(result)-1] == '.': - result.add("0") + c_sprintf(buf, "%#.16e", x) + return $buf proc nimInt64ToStr(x: int64): string {.compilerRtl.} = result = newString(sizeof(x)*4) |