
12 Mar
2010
12 Mar
'10
7:22 p.m.
AMDG Olaf Peter wrote:
is there a way to use boost.units to convert a double automatically to a SI unit prefix, e.g. 10e-3 to 10m or 10e3 to 10k ?? The value isn't know at compile time, so the decision has to be done on runtime.
There is not such a facility. There will soon be support for printing things like 1.0 km instead of 1000 m, but formatting of raw numbers is somewhat beyond the scope of the library. In Christ, Steven Watanabe