3.3 Floating-Point Types

The three floating-point types are:

Use the floating-point types for variables, constants, and function return values with fractional parts, or where the value exceeds the storage range available with the integral types. The following examples show sample floating-point type declarations (and initializations):

float x = 35.69;
double y = .0001;
double z = 77.0e+10;
float Q = 99.9e+99;                 /*  Exceeds allowable range   */


Previous Page | Next Page | Table of Contents | Index