June 2019
Intermediate to advanced
218 pages
5h 19m
English
Subnormal numbers (also sometimes called denormal numbers) are very small floating point values, near zero. Formally, they are numbers smaller than those that can be represented without leading zeros in the significand.
Typically, floating point numbers are represented without leading zeros in the significand. Leading zeros in the number are moved to the exponent (that is, 0.0123 is represented as 1.23×10-2). Subnormal numbers are, however numbers in which such a representation would cause the exponent to be lower than the minimum possible value. In such a situation, the significand is forced to have leading zeros.
Subnormal numbers in Julia can be identified by the issubnormal function, as follows:
julia> issubnormal(1.0) ...
Read now
Unlock full access