Skip to main content

round_half_even

Function round_half_even 

Source
pub fn round_half_even(value: f64) -> i64
Expand description

Python’s round: halves go to the nearest even integer.

Ported rather than replaced by f64::round (which rounds halves away from zero) so a stride lands on the same layers here as upstream – a one-layer difference silently changes which experts a deployment serves on which device.

Public so ferrox-models’ DSV4 window tier sizes by the same rule: two copies would be free to drift, and a half-page disagreement between placement and sizing is a page of window the budget did not buy.