You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
According to the syntax documentation, the alternate form should cause general format floating point values to not suppress trailing zeros:
The '#' option causes the “alternate form” to be used for the conversion. [...] In addition, for 'g' and 'G' conversions, trailing zeros are not removed from the result.
This seems to be unimplemented with the current master, parse_float_type_spec only uses the alt flag to determine if a decimal point should be shown. As a result, the following format string does not show any trailing zeros:
fmt::print("{:#.17g}", 0.875);
I've tested various older versions, and it seems to be a regression introduced between 6.0.0 and 6.1.0.
The text was updated successfully, but these errors were encountered:
According to the syntax documentation, the alternate form should cause general format floating point values to not suppress trailing zeros:
This seems to be unimplemented with the current master,
parse_float_type_spec
only uses the alt flag to determine if a decimal point should be shown. As a result, the following format string does not show any trailing zeros:I've tested various older versions, and it seems to be a regression introduced between 6.0.0 and 6.1.0.
The text was updated successfully, but these errors were encountered: