Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

Type autoprefix_mode

boost::units::autoprefix_mode

Synopsis

// In header: <boost/units/io.hpp>



enum autoprefix_mode { autoprefix_none = = 0, autoprefix_engineering = = 4, 
                       autoprefix_binary = = 8, autoprefix_mask = = 12 };

Description

automatic scaling and prefix (controlled by value of quantity) a, if any,

autoprefix_engineering
No automatic prefix.
autoprefix_binary
Scale and prefix with 10^3 multiples, 1234.5 m output as 1.2345 km.
autoprefix_mask
Scale and prefix with 2^10 (1024) multiples, 1024 as 1 kb.

PrevUpHomeNext