This reverts commit b2c6db97f9.
This commit is contained in:
parent
f3117d350e
commit
e4415422fe
10 changed files with 41 additions and 45 deletions
|
|
@ -29,7 +29,7 @@ proc writeFloatToBuffer*(buf: var array[65, char]; value: BiggestFloat): int =
|
|||
## * `buf` - A buffer to write into. The buffer does not need to be
|
||||
## initialized and it will be overridden.
|
||||
##
|
||||
var n: int = c_sprintf(addr buf, "%.17g", value)
|
||||
var n: int = c_sprintf(addr buf, "%.16g", value)
|
||||
var hasDot = false
|
||||
for i in 0..n-1:
|
||||
if buf[i] == ',':
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue