A whole number. The following are integers:
0
1
-125
144457
In contrast, the following are notintegers:
5.34
-1.0
1.3E4
“string”
The first three are floating-point numbers; the last is a character string.
Integers, floating-point numbers, and character strings constitute the basic data types that most computers support. There are often different sizes of integers available; for example, PCs support short integers, which are 2 bytes, and long integers, which are 4 bytes.