Enable grisu for general format
This commit is contained in:
@@ -645,7 +645,7 @@ FMT_FUNC bool grisu2_format(Double value, buffer& buf, int precision,
|
||||
bool fixed, int& exp) {
|
||||
FMT_ASSERT(value >= 0, "value is negative");
|
||||
if (value <= 0) { // <= instead of == to silence a warning.
|
||||
if (precision < 0) {
|
||||
if (precision < 0 || !fixed) {
|
||||
exp = 0;
|
||||
buf.push_back('0');
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user