Skip to main content

py_round

Function py_round 

Source
fn py_round(x: f64) -> i64
Expand description

Python’s round() — half away from zero is not what it does; it is banker’s rounding, so 0.5 goes to 0 and 1.5 goes to 2.