Opened 13 years ago

Closed 12 years ago

#3660 closed Feature Requests (fixed)

Using units prefix dynamically to get the appropriate prefix for the size of the value

Reported by: Paul A. Bristow Owned by: Steven Watanabe
Milestone: Boost 1.42.0 Component: units
Version: Boost 1.41.0 Severity: Optimization
Keywords: units prefix dynamic Cc:

Description

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".

Change History (1)

comment:1 by Steven Watanabe, 12 years ago

Resolution: fixed
Status: newclosed

(In [62532]) Merge the units/autoprefix branch back to the trunk. Fixes #3660. Fixes #3707

Note: See TracTickets for help on using tickets.