Skip to main content

round_to

Function round_to 

Source
fn round_to(d: &Dec, m: i32, inc: u32, mode: RoundingMode, neg: bool) -> Dec
Expand description

d(絶対値。neg は元の符号)を、10^m の位の inc の倍数へ丸める(仕様の ApplyUnsignedRoundingMode)。