☰
f32
f32
Functions
casting bit representation to u32
true when the absolute value
is smaller than 0.001
or greater than 9_999_999
is smaller than 0.001
or greater than 9_999_999
Type Features
create hash code from this number
special handling for floats:
although -0.0 and 0.0 are different in bit representation,
they are considered equal by both type.equality and IEEE
standard, hence they should have the same hash.
all NaNs are considered equal by type.equality (but not
the IEEE standard), so the hash of any NaN is the hash of
the "canonical" NaN.
special handling for floats:
although -0.0 and 0.0 are different in bit representation,
they are considered equal by both type.equality and IEEE
standard, hence they should have the same hash.
all NaNs are considered equal by type.equality (but not
the IEEE standard), so the hash of any NaN is the hash of
the "canonical" NaN.
number of bits used for mantissa,
including leading '1' that is not actually stored
including leading '1' that is not actually stored
number of bits used for exponent
mask for the the bits that encode the mantissa
mask for the the bits that encode the exponent
(the mask is not shifted to the correct position)
(the mask is not shifted to the correct position)
the exponent bias (the zero offset of the exponent)
atan(y/x) with a few special cases
see also: https://go.dev/src/math/atan2.go
see also: https://go.dev/src/math/atan2.go
f32 are binary32-numbers as defined in the IEEE 754-2019 standard, see
https://ieeexplore.ieee.org/servlet/opac?punumber=8766227