Mega Code Archive

 
Categories / Java Book / 001 Language Basics
 

0014 float

float type represents single-precision numbers. float is 32-bit width and its range is from 1.4e-045 to 3.4e+038 approximately. float type variables are useful when you need a fractional component. Here are some example float variable declarations: float high, low;