Skip to main content

scaled_round

Function scaled_round 

Source
fn scaled_round(x: f64, k: i32) -> BigInt
Expand description

x × 10^k に一番近い整数(ちょうど中間なら大きい方。仕様の「n が 2 つあれば大きい方」)。x は正の有限の数。