Opened 13 years ago
Closed 13 years ago
#2995 closed Feature Requests (duplicate)
default value output precision
Reported by: | Owned by: | Vladimir Prus | |
---|---|---|---|
Milestone: | Boost 1.39.0 | Component: | program_options |
Version: | Boost 1.38.0 | Severity: | Not Applicable |
Keywords: | Cc: |
Description
If I make an option like this: ("maxlength", po::value<double>(&MaxLength)->default_value(.1), "Maximum edge length to keep.")
The help message looks like this: --maxlength arg (=0.10000000000000001) Maximum edge length to keep.
It probably should default to fewer decimal points.
Note:
See TracTickets
for help on using tickets.
Dup of #2994