Temporarily disable Grisu for fixed formatting
This commit is contained in:
parent
2d981bb133
commit
d560ddac25
@ -2888,7 +2888,7 @@ void basic_writer<Range>::write_double(T value, const format_specs& spec) {
|
|||||||
if (handler.as_percentage) value *= 100.;
|
if (handler.as_percentage) value *= 100.;
|
||||||
|
|
||||||
bool use_grisu = fmt::internal::use_grisu<T>() &&
|
bool use_grisu = fmt::internal::use_grisu<T>() &&
|
||||||
(!spec.type || handler.fixed) &&
|
!spec.type &&
|
||||||
internal::grisu2_format(static_cast<double>(value), buffer,
|
internal::grisu2_format(static_cast<double>(value), buffer,
|
||||||
precision, handler.fixed, exp);
|
precision, handler.fixed, exp);
|
||||||
if (!use_grisu) internal::sprintf_format(value, buffer, spec);
|
if (!use_grisu) internal::sprintf_format(value, buffer, spec);
|
||||||
|
Loading…
Reference in New Issue
Block a user