Template Function nlohmann::detail::dtoa_impl::grisu2(char *, int&, int&, FloatType)

Function Documentation

template<typename FloatType>
void nlohmann::detail::dtoa_impl::grisu2(char *buf, int &len, int &decimal_exponent, FloatType value)

v = buf * 10^decimal_exponent len is the length of the buffer (number of decimal digits) The buffer must be large enough, i.e. >= max_digits10.