Skip to main content

round

Function round 

Source
pub fn round<I, const FRAC: usize>(val: Fixed<I, FRAC>) -> I
where I: Bounded + NumCast + Copy + Into<i128> + Zero,
Expand description

Rounds the given fixed-point value to the nearest integer using round-half-to-even (convergent rounding).