Numy v0.1.2 Numy.Float View Source
Floating point number utilities.
Link to this section Summary
Link to this section Functions
Convert bit-by-bit 64-bit float to 64-bit integer.
Link to this function
equal?(a, b, epsilon \\ 1.0e-9, max_ulps \\ 4)
View Sourceequal?(number(), number(), float(), pos_integer()) :: boolean()
Equality comparison for floating point numbers.
Based on this blog post by Bruce Dawson.
Return true
if sign bit is 1 in the binary representation of the number.
IEEE Long Real 64-bit binary format:
- 1 bit for the sign,
- 11 bits for the exponent,
- and 52 bits for the mantissa
ULP difference.