float32Bits (Function)

Signature: float32Bits(x: float) -> int

Description: The binary32 pattern of the nearest float32 to x (the low 32 bits of the float32 word), as an int.

Parameters

  • x (float): The double to narrow and view

Returns: int

Example

print(float32Bits(0.1))  // 1036831949
print (float32Bits 0.1)  // 1036831949