|
преди 8 месеца | |
---|---|---|
.. | ||
patches | преди 2 месеца | |
LICENSE | преди 2 месеца | |
README.md | преди 2 месеца | |
grisu2.h | преди 2 месеца |
This is a C++11 implementation of the Grisu2 algorithm for converting floating-point numbers to decimal strings.
The Grisu2 algorithm is by Florian Loitsch, based on the work of Robert G. Burger and R. Kent Dybvig:
The original C implementation is by Florian Loitsch:
The implementation simplified and adapted to JSON and C++11 by Daniel Lemire as part of simdjson:
The grisu2.h
file is the same as to_chars.cpp
but with godot.patch
applied to it, with the following changes:
grisu2
namespace.to_chars
handle both float and double types instead of just double..0
logic to match Godot's existing String::num_scientific
behavior.