Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

missing decimal point with scientific, precision=0, and showpoint #1476

Closed
planet36 opened this issue Dec 12, 2019 · 1 comment
Closed

missing decimal point with scientific, precision=0, and showpoint #1476

planet36 opened this issue Dec 12, 2019 · 1 comment

Comments

@planet36
Copy link

With this format string {:#.{}e} and precision=0, there is a missing decimal point in the output using fmt::format compared to std::ostringstream.

Version info:

FMT_VERSION=60102
FMT_GCC_VERSION=902
FMT_USE_GRISU=1

@vitaut
Copy link
Contributor

vitaut commented Dec 18, 2019

Fixed in 8b41362. Thanks for reporting.

@vitaut vitaut closed this as completed Dec 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants