Skip to main content

trunc

Function trunc 

Source
pub fn trunc(x: f32) -> f32
Expand description

Integer part, discarding the fraction and keeping the sign of x.