Sun WorkShop Compiler C 5.0 User's Guide

Floating-Point(G.3.6)

(6.1.2.5)The representations and sets of values of the various types of floating-point numbers:

Table B-2 Values for a float
float
 Bits

32 

 Min

1.17549435E-38 

 Max

3.40282347E+38  

 Epsilon

1.19209290E-07  

Table B-3 Values for a double
double
 Bits

64 

 Min

2.2250738585072014E-308 

 Max

1.7976931348623157E+308 

 Epsilon

2.2204460492503131E-16 

Table B-4 Values for long double
long double
 Bits

128 (SPARC)

80 (Intel)

 Min

3.362103143112093506262677817321752603E-4932 (SPARC)

3.3621031431120935062627E-4932 (Intel)

 Max

1.189731495357231765085759326628007016E+4932 (SPARC)

1.1897314953572317650213E4932 (Intel)

 Epsilon

1.925929944387235853055977942584927319E-34 (SPARC)

1.0842021724855044340075E-19 (Intel)

(6.2.1.3)The direction of truncation when an integral number is converted to a floating-point number that cannot exactly represent the original value:

Numbers are rounded to the nearest value that can be represented.

(6.2.1.4)The direction of truncation or rounding when a floating- point number is converted to a narrower floating-point number:

Numbers are rounded to the nearest value that can be represented.