Subject: [Boost-bugs] [Boost C++ Libraries] #2995: default value output precision
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-05-05 12:54:50
#2995: default value output precision
----------------------------------+-----------------------------------------
Reporter: daviddoria_at_[hidden] | Owner: vladimir_prus
Type: Feature Requests | Status: new
Milestone: Boost 1.39.0 | Component: program_options
Version: Boost 1.38.0 | Severity: Not Applicable
Keywords: |
----------------------------------+-----------------------------------------
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.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/2995> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:00 UTC