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

OptionParser show_defaults rounding error #35

Open
terencewtli opened this issue Jul 8, 2020 · 0 comments
Open

OptionParser show_defaults rounding error #35

terencewtli opened this issue Jul 8, 2020 · 0 comments

Comments

@terencewtli
Copy link
Contributor

terencewtli commented Jul 8, 2020

When printing the default values from OptionParser, double values are formatted with extra zeroes. For example, setting a default value to 1.0e10 leads to OptionParser printing 10000000000.000000 instead. There's also an issue with rounding that causes a 'round-tripping' problem - default value 1234500000000.1200000034 gets printed as 1234500000000.120117.

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

1 participant