Fix fallback float formatter at assymetric bounds (#1976)

This commit is contained in:
Victor Zverovich committed 2020-11-03 21:18:04 -08:00
1 parent 5f7f7b954d
commit ce98e0c6a0
2 files changed
+3 -1

No files matched your search

+1 -1
View File
@@ -2337,7 +2337,7 @@ void fallback_format(Double d, int num_digits, bool binary32, buffer<char>& buf,
upper = &upper_store;
}
denominator.assign_pow10(exp10);
denominator <<= 1;
denominator <<= shift;
} else if (exp10 < 0) {
numerator.assign_pow10(-exp10);
lower.assign(numerator);