alloy::core::f32

Function parts

source
pub const fn parts(x: f32) -> (bool, u32, u32)
Expand description

Computes the parts of a 32-bit floating point number.

This returns the sign of the float, the exponent, and the mantissa.

ยงParameters

  • x - The floating point number.