Skip to main content

java_round

Function java_round 

Source
fn java_round(v: f64) -> i32
Expand description

Java’s Math.round(double) — half-up toward +∞. Rust’s f64::round() rounds -0.5 → -1; Java rounds -0.5 → 0.