Skip to main content

Module misc

Module misc 

Source

Functionsยง

abs
Absolute value: clear the sign bit.
classify
IEEE 754 classification.
is_quiet_nan
Check if the value is a quiet NaN.
is_signaling_nan
Check if the value is a signaling NaN.
is_subnormal
Check if the value is subnormal (unpacks to Normal with biased_exp == 0 in the original encoding, but our unpack normalizes subnormals; detect via original exponent range).
neg
Negate: flip the sign bit.
scalbn
Scale by power of 2: a * 2^n. Does not raise INEXACT (unlike multiplication by 2^n).