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
Thanks for mentioning that, but it adds verbosity (and quite a lot, if you want to do it in a way that avoids redundancy) when the default precision really should be lower.
Further, I wonder if a better solution wouldn't be to have an overload of default_value() that takes an arbitrary iomanip. That would enable the entire range of formatting customizations that std::ostream supports.
Source code:
Output:
Output should be:
I've tried this on Boost 1.65.1 on Ubuntu Beaver, and Boost 1.69.0 on DragonFly BSD 5.5, and got the same result.
For an idea on how to fix it, see ldecimal.cpp in https://github.com/phma/bezitopo, but that would output ".1", not "0.1".
The text was updated successfully, but these errors were encountered: