fast_float icon indicating copy to clipboard operation
fast_float copied to clipboard

Fast and exact implementation of the C++ from_chars functions for number types: 4x to 10x faster than strtod, part of GCC 12 and WebKit/Safari

Results 39 fast_float issues
Sort by recently updated
recently updated
newest added

Hi in many applications I have I cannot use double / float but use a fixed-point integer representation, for instance storing the number in a int64_t with the stored value...

Note: making sense of ieee formatting and parsing hex floats completely confused me, don't trust compute_hex to do what it should. I ripped the internals of the other compute function...

This isn't a performance related feature, but I've found it odd that the charconv spec goes out of its way to avoid parsing what would otherwise be necessary to handle...

Add `long double` overload for `from_chars()` to fully mimic `std::from_chars`. See https://en.cppreference.com/w/cpp/utility/from_chars overload no.4

When the parsed value is outside the representable range, such as on input "1e-10000" and "1e+10000", it seems fast_float::from_chars sets the 'value' output parameter to 0 and infinity respectively and...

Reduce code size if only float accuracy is needed for parsing, implements #99 Pro: - reduces binary code size if only `float` type is used for parsing (numbers are discussed...

Have you considered optimizing the code size for parsing floats? The LUT `power_of_five_128` has approximately ~1400 entries which are needed for parsing doubles. I don't know how many entries are...

It would be nice to have a fast string to integer/unsigned parser with similar performance. I suspect it is just a matter of wrapping internal functions with a `from_chars`-like API....

Thanks for your work -- it ticks all the boxes! C++11, non terminated strings, and zero allocations - just what I was looking for in my library to address [a...

These functions can be specialized for fixed length and done with SWAR