Skip to main content

clamp_i16

Function clamp_i16 

Source
pub fn clamp_i16(v: f32) -> i16
Expand description

Clamps a float to the i16 range (−32767..32767) and truncates.