mp_units::rounded¶
Rounding policy that rounds to the nearest value, and to even in halfway cases
Synopsis¶
Declared in <mp-units/framework/rounding.h>
inline constexpr rounded_t rounded = rounded{};
Description¶
It has the semantics of std::chrono::round. A conversion to a floating-point representation type doesn't accept it.
See Also¶
truncatedfor the semantics ofstatic_castrounded_downfor rounding towards negative infinityrounded_upfor rounding towards positive infinity- Value Conversions for when a policy is needed