Skip to main content

f32_to_f8

Function f32_to_f8 

Source
pub fn f32_to_f8(x: f32, variant: Fp8Variant) -> u8
Expand description

Encodes x as an f8 byte in variant. See the module docs for rounding/saturation behavior.