Title: OptionParser show_defaults rounding error · Issue #35 · smithlabcode/smithlab_cpp · GitHub
Open Graph Title: OptionParser show_defaults rounding error · Issue #35 · smithlabcode/smithlab_cpp
X Title: OptionParser show_defaults rounding error · Issue #35 · smithlabcode/smithlab_cpp
Description: 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 round...
Open Graph Description: 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 i...
X Description: 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 i...
Opengraph URL: https://github.com/smithlabcode/smithlab_cpp/issues/35
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"OptionParser show_defaults rounding error","articleBody":"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`.","author":{"url":"https://github.com/terencewtli","@type":"Person","name":"terencewtli"},"datePublished":"2020-07-08T00:38:25.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/35/smithlab_cpp/issues/35"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:8f49db8c-9fec-12de-9793-5d4d69bb0d26 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | EA62:D1074:2A6F58:3B1F37:698DF6DB |
| html-safe-nonce | 2b606739609bf5144699bf0d49074412662ea3279f4a11826a9a2c8991e08148 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQTYyOkQxMDc0OjJBNkY1ODozQjFGMzc6Njk4REY2REIiLCJ2aXNpdG9yX2lkIjoiODIyNzM3NzgxNTY5NzA5NDM2MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | dee4f6fdd96dd2356a54f78ccdea6c67165d14ff180b29f6b906dc2d874c1cda |
| hovercard-subject-tag | issue:652780556 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/smithlabcode/smithlab_cpp/35/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ee801a2d6ab67921823f60f543fe245ebb7f3f61d9832fef07df208280abd335/smithlabcode/smithlab_cpp/issues/35 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ee801a2d6ab67921823f60f543fe245ebb7f3f61d9832fef07df208280abd335/smithlabcode/smithlab_cpp/issues/35 |
| og:image:alt | 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 i... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | terencewtli |
| hostname | github.com |
| expected-hostname | github.com |
| None | ae22ef6ad27c5aeb770c5acd314c5724055bb23a663877aafdaaa50ed317ba34 |
| turbo-cache-control | no-preview |
| go-import | github.com/smithlabcode/smithlab_cpp git https://github.com/smithlabcode/smithlab_cpp.git |
| octolytics-dimension-user_id | 7265986 |
| octolytics-dimension-user_login | smithlabcode |
| octolytics-dimension-repository_id | 18970036 |
| octolytics-dimension-repository_nwo | smithlabcode/smithlab_cpp |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 18970036 |
| octolytics-dimension-repository_network_root_nwo | smithlabcode/smithlab_cpp |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | e545f5becd5b3ce9b429b68c3f994ad93c680ddb |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width