No description
Find a file
2018-10-02 14:42:34 +02:00
src Signed zero and inf can now be printed 2018-10-02 14:42:34 +02:00
tests Signed zero and inf can now be printed 2018-10-02 14:42:34 +02:00
.travis.yml Add CI/README/nimble 2018-10-02 10:06:33 +02:00
bench.nim More inline & benchmarks 2018-09-25 11:02:43 +02:00
dtoa.nimble Add CI/README/nimble 2018-10-02 10:06:33 +02:00
README.md Add CI/README/nimble 2018-10-02 10:06:33 +02:00

Build Status

dtoa

Convert a double value to a string.

A straightforward port of Milo Yip's fast dtoa implementation used in RapidJson.

This implementation is tailored for speed and uses Grisu2 as its underlying algorithm: this means that there's a small where the output won't be represented in its most compact form.

The resulting string is guaranteed to round-trip.

FAQ

What's wrong with $?

The dtoa provided by this library is much faster than $, you can run the benchmark by yourself by running:

nimble install criterion
nim c -d:release -r bench.nim

And since it doesn't depend on the underlying libc implementation its output is guaranteed to be the same across different platforms/os.

What about float?

I don't need them at the moment, if you do please open a ticket.