Sun Studio 12: C User's Guide

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

Table E–2 Values for a float

float

 

Bits 

32 

Min 

1.17549435E-38 

Max 

3.40282347E+38 

Epsilon 

1.19209290E-07 

Table E–3 Values for a double

double

 

Bits 

64 

Min 

2.2250738585072014E-308 

Max 

1.7976931348623157E+308 

Epsilon 

2.2204460492503131E-16 

Table E–4 Values for long double

long double

 

Bits 

128 (SPARC)

80 (x86)

Min 

3.362103143112093506262677817321752603E-4932 (SPARC)  

3.3621031431120935062627E-4932 (x86)

Max 

1.189731495357231765085759326628007016E+4932 (SPARC)

1.1897314953572317650213E4932 (x86)

Epsilon 

1.925929944387235853055977942584927319E-34 (SPARC)

1.0842021724855044340075E-19 (x86)

(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.