Boost C++ Libraries: Ticket #3660: Using units prefix dynamically to get the appropriate prefix for the size of the value https://svn.boost.org/trac10/ticket/3660 <p> 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. </p> <p> 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". </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/3660 Trac 1.4.3 Steven Watanabe Mon, 07 Jun 2010 23:50:03 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/3660#comment:1 https://svn.boost.org/trac10/ticket/3660#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/62532" title="Merge the units/autoprefix branch back to the trunk. Fixes #3660. ...">[62532]</a>) Merge the units/autoprefix branch back to the trunk. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/3660" title="#3660: Feature Requests: Using units prefix dynamically to get the appropriate prefix for the ... (closed: fixed)">#3660</a>. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/3707" title="#3707: Bugs: doxygen commands have a typo in tests \detailed should be \details (closed: fixed)">#3707</a> </p> Ticket