Function truncf

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

Rounds the number toward 0 to the closest integral value (f32).

This effectively removes the decimal part of the number, leaving the integral part.