Subject: [Boost-bugs] [Boost C++ Libraries] #3660: Using units prefix dynamically to get the appropriate prefix for the size of the value
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-11-23 15:37:25
#3660: Using units prefix dynamically to get the appropriate prefix for the size
of the value
----------------------------------+-----------------------------------------
Reporter: pbristow | Owner: steven_watanabe
Type: Feature Requests | Status: new
Milestone: Boost 1.42.0 | Component: units
Version: Boost 1.41.0 | Severity: Optimization
Keywords: units prefix dynamic |
----------------------------------+-----------------------------------------
I'd like to use the units library prefix (k, M, G ...) system, but I'd
really like to determine the prefix dynamically (automatically) depending
on the value.
For example, if I have a length of 12300 m I'd like an output of "12.3 km"
but if my length is 0.0123 m, I'd like an output of "12.3 mm".
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/3660> 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:01 UTC