polars_arrow::types

Function canonical_f16

Source
pub fn canonical_f16(x: f16) -> f16
Expand description

Converts an f32 into a canonical form, where -0 == 0 and all NaNs map to the same value.