
The encoding of ASCII and
Unicode characters is dis-
cussed in Appendix C.
REFERENCE POINT
Floating-point numbers are
stored using the IEEE 754
standard,which is dis-
cussed in Appendix E.
REFERENCE POINT
48 CHAPTER 2 Programming Building Blocks—Java Basics
TABLE 2.3 Floating-point Data Types
Floating-point Data Type Size in Bytes Minimum Positive Maximum Value
Nonzero Value
float 4 1.4E-45 3.4028235E38
double 8 4.9E-324 1.7976931348623157E308
2.2.3 Floating-Point Data Types
Floating-point data types store numbers with fractional parts. Java sup-
ports two floating-point data types: the single-precision float and the dou-
ble-precision double.
The two types ...