Mega Code Archive

 
Categories / Java Book / 001 Language Basics
 

0007 Floating Point Types

There are two kinds of floating-point types: float and double. float type represents single-precision numbers. double type stores double-precision numbers. Floating-Point Types width and ranges are shown here: Name Width in Bits Approximate Range double 64 4.9e-324 to 1.8e+308 float 32 1.4e-045 to 3.4e+038