![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
For most integers, the byte
and short
integer types are a little
small, and long
is unnecessarily large, so the int
data type,
lying between, is popular. For most floating-point numbers, the
float
floating-point type is a little small, so the double
data
type, being twice as big, is popular. Accordingly, all the programs in the
rest of this book use int
for all integers and double
for all
floating-point numbers.