Opened 13 years ago

Closed 13 years ago

#2995 closed Feature Requests (duplicate)

default value output precision

Reported by: daviddoria@… 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.

Change History (1)

comment:1 by Vladimir Prus, 13 years ago

Resolution: duplicate
Status: newclosed

Dup of #2994

Note: See TracTickets for help on using tickets.