Implement a new formatting algorithm for small given precision (#3269)

Implement the formatting algorithm for small given precision discussed in https://github.com/fmtlib/fmt/issues/3262 and https://github.com/fmtlib/fmt/pull/2750
This commit is contained in:
jk-jeon
2023-01-14 11:30:20 -08:00
committed by GitHub
parent bfc0924eac
commit 0f42c17d85
3 changed files with 363 additions and 69 deletions
+1 -1
View File
@@ -246,7 +246,7 @@ TEST(fp_test, dragonbox_max_k) {
fmt::detail::const_check(double_info::max_k),
double_info::kappa -
floor_log10_pow2(std::numeric_limits<double>::min_exponent -
fmt::detail::num_significand_bits<double>() - 1));
2 * fmt::detail::num_significand_bits<double>() - 1));
}
TEST(fp_test, get_round_direction) {