Function nlohmann::detail::dtoa_impl::get_cached_power_for_binary_exponent

Function Documentation

inline cached_power nlohmann::detail::dtoa_impl::get_cached_power_for_binary_exponent(int e)

For a normalized diyfp w = f * 2^e, this function returns a (normalized) cached power-of-ten c = f_c * 2^e_c, such that the exponent of the product w * c satisfies (Definition 3.2 from [1])

 alpha <= e_c + e + q <= gamma.