Real, double precision, and quadruple precision number data elements are represented according to the IEEE standard by the following form, where f is the bits in the fraction. Quad is SPARC only.
(-1)sign * 2exponent-bias *1.f
Table C-1 Floating-point Representation
|
Single |
Double |
Quadruple |
---|---|---|---|
Sign |
Bit 31 |
Bit 63 |
Bit 127 |
Exponent |
Bits 30-23 Bias 127 |
Bits 62-52 Bias 1023 |
Bits 126-112 Bias 16583 |
Fraction |
Bits 22-0 |
Bits 51-0 |
Bits 111-0 |
Range approx. |
3.402823e+38 1.175494e-38 |
1.797693e+308 2.225074e-308 |
3.362E-4932 1.20E+4932 |