mp_units::rounded_up¶
Rounding policy that rounds towards positive infinity
Synopsis¶
Declared in <mp-units/framework/rounding.h>
inline constexpr rounded_up_t rounded_up = rounded_up{};
Description¶
It has the semantics of std::chrono::ceil. A conversion to a floating-point representation type doesn't accept it.
See Also¶
truncatedfor the semantics ofstatic_castroundedfor rounding to the nearest valuerounded_downfor rounding towards negative infinity- Value Conversions for when a policy is needed