diff --git a/include/fmt/format.h b/include/fmt/format.h index 6923df55..07f84c6e 100644 --- a/include/fmt/format.h +++ b/include/fmt/format.h @@ -2888,7 +2888,7 @@ void basic_writer::write_double(T value, const format_specs& spec) { if (handler.as_percentage) value *= 100.; bool use_grisu = fmt::internal::use_grisu() && - (!spec.type || handler.fixed) && + !spec.type && internal::grisu2_format(static_cast(value), buffer, precision, handler.fixed, exp); if (!use_grisu) internal::sprintf_format(value, buffer, spec);