I am converting C22E8300 from a Single Precision IEEE 754 Floating Point to a decimal.
First, I converted to binary: 1100 0010 0010 1110 1000 0011 ...
Calculated the exponent as 5. The mantissa is 0.24762
How do I finish the conversion now?
I am converting C22E8300 from a Single Precision IEEE 754 Floating Point to a decimal.
First, I converted to binary: 1100 0010 0010 1110 1000 0011 ...
Calculated the exponent as 5. The mantissa is 0.24762
How do I finish the conversion now?
Let s be the first bit, e be the next eight bits (interpreted as a binary numeral), and f be the remaining 23 bits (interpreted as a binary numeral).
If e is zero, the value represented is (−1)s • f/223 • 2−126.
If e is 255 and f is zero, the value represented is +∞ or −∞, according to whether s is 0 or 1, respectively.
If e is 255 and f is not zero, the object is a NaN.
Otherwise, the value represented is (−1)s • (1+f/223) • 2e−127.