The floating-point data types are used to store decimal numbers like 3.45, -1267.89, 0.33424324, 0.00011, 4.0, 189.0 etc. Java supports two floating point types -
float and double
The two floating point types in the order of size are:
3-min video about floating point data types
|