Refactor floating-point formatting

This commit is contained in:
Victor Zverovich
2019-11-22 11:15:09 -08:00
parent 9108b25da9
commit 7395472dde
4 changed files with 26 additions and 32 deletions

View File

@@ -327,7 +327,7 @@ TEST(FPTest, FixedHandler) {
TEST(FPTest, GrisuFormatCompilesWithNonIEEEDouble) {
fmt::memory_buffer buf;
int exp = 0;
grisu_format(4.2f, buf, -1, false, exp);
grisu_format(4.2f, -1, buf, fmt::internal::float_spec(), exp);
}
template <typename T> struct value_extractor {