f32_from_bits
lib callCapy
function f32_from_bits(value : u32) f32
Description
f32_from_bits() is the inverse of bits_of() for f32. The pattern 1065353216 encodes 1.0; 2139095040 is positive infinity. Any pattern is accepted, including the NaN encodings.
Parameters
value : a 32-bit pattern
Return Values
The f32 whose IEEE 754 encoding is value.
Example
Capy
print(f32_from_bits(1065353216), " ", is_infinite(f32_from_bits(2139095040)), "\n")
Output
1 true