numtoa icon indicating copy to clipboard operation
numtoa copied to clipboard

An efficient method of heaplessly converting numbers into their string representations, storing the representation within a reusable byte array.

Results 4 numtoa issues
Sort by recently updated
recently updated
newest added

Add ability to format with leading zeroes, similar to ```cpp printf("%05d", zipCode); ```

If I know for sure that I have numbers in the range 0 .. 100_000_000, I want to be able to use an 8-byte buffer rather than needing 20 bytes...

https://github.com/mmstick/numtoa/issues/4#issuecomment-274293855 Based on the benchmark code in #4 but writing to Vec\, itoa is about 10% faster. ```rust let mut null = Vec::new(); for number in 0..100_000_000u64 { null.clear(); /*...

Can the same triple and quad digit lookup table technique be applied to f32 and f64? I would love to have something faster than [`dtoa`](https://github.com/dtolnay/dtoa).