Type
Exponent Range
Precision
float
2-149 to 2127 ~= 10-45 to 1038
24 bits ~= 6 to 9 decimal digits
double
2-1074 to 21023 ~= 10-324 to 10308
53 bits ~= 15 to 17 decimal digits
BigDecimal
10-2147483647 to 102147483648
1 to billions of decimal digits
Table 2:
Properties of numeric types.
Back to Article