![]() |
![]() |
![]() |
![]() |
![]() |
|
For storing floating-point numbers, Java
provides two data types, float and double. Again, Java
compiler writers are required to use a standard number of bytes for each:
| Type | Bytes | Stores |
| float | 4 | floating-point number |
| double | 8 | floating-point number |