The Integer data type is one of the most commonly used types in
programming. An integer can store a positive or negative whole
number, but can't store fractional values. So, it can store values such
as 5, 42, 1947, but can't store numbers such as 3.2, 4.5, etc...
If a number with a fractional value is stored into a integer, the
fractional value will be discarded. Hence, if 3.2 is
stored into an integer, it will only retain 3.
The Variable Watch Window displays integers in blue.
|