Sun WorkShop Compiler C 5.0 User's Guide

Floating-Point Representations

float, double, and long double data elements are represented according to the ANSI/ISO IEEE 754-1985 standard. The representation is:

(-1)s(e - bias)¥2 j.f

where:

The following tables show the position of the bits.

Table A-6 float Representation

Bits 

Name 

31 

Sign 

23 - 30 

Exponent 

0 - 22 

Fraction 

Table A-7 double Representation

Bits 

Name 

63 

Sign 

52 - 62 

Exponent 

0 - 51 

Fraction 

Table A-8 long double Representation (SPARC)

Bits 

Name 

127 

Sign 

112 - 126 

Exponent 

0 - 111 

Fraction 

Table A-9 long double Representation (Intel)

Bits 

Name 

80 - 95 

Unused 

79 

Sign 

64 - 78 

Exponent 

63 

Leading bit 

0 - 62 

Fraction 

For further information, refer to the Numerical Computation Guide.