3.2.Floating Point Types #

Floating Point Types

Floating point can store both values like integer and precision values, but this type waste more memory space than integer type.

  • Implementation of IEEE 754 floating point standard
  • Store values containing a fractional portion
  • Supports positive, negative, and zero values
Type Size (bits) Smallest Positive Value Largest Positive Value
float 32 1.4*10 -45 3.4*10 38
double 64 4.9*10 -324 1.7*10 308
Suggest Edit