Merge pull request #167 from deadalnix/smallest_power_of_ten

Change smallest_power_of_ten to -64 for floats.
This commit is contained in:
Daniel Lemire 2024-06-27 19:03:59 -04:00 committed by GitHub
commit c8b3ca0d12
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -564,7 +564,7 @@ inline constexpr int binary_format<double>::smallest_power_of_ten() {
} }
template <> template <>
inline constexpr int binary_format<float>::smallest_power_of_ten() { inline constexpr int binary_format<float>::smallest_power_of_ten() {
return -65; return -64;
} }
template <> inline constexpr size_t binary_format<double>::max_digits() { template <> inline constexpr size_t binary_format<double>::max_digits() {