pdclib:printing_floating_point_numbers
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
pdclib:printing_floating_point_numbers [2025/08/21 13:46] – [Visualization] solar | pdclib:printing_floating_point_numbers [2025/08/21 14:01] (current) – [Biased Exponent] solar | ||
---|---|---|---|
Line 25: | Line 25: | ||
Instead of assuming two's complement to allow for positive and negative exponents, IEEE 754 uses //biased// exponents: The exponent bits are interpreted as unsigned integer, but to get the " | Instead of assuming two's complement to allow for positive and negative exponents, IEEE 754 uses //biased// exponents: The exponent bits are interpreted as unsigned integer, but to get the " | ||
+ | === Huh? === | ||
+ | |||
+ | Remember that IEEE 754 is a //floating point// standard. It makes //no// asumptions on the integer logic of the machine. What should the exponent be encoded at? Two's compliment? You don't know if the ALU supports that! So the exponent is stored unsigned. That means that the value '' | ||
==== Infinity ==== | ==== Infinity ==== | ||
pdclib/printing_floating_point_numbers.1755776815.txt.gz · Last modified: by solar