Next: Binary Numbers
Up: Problem Solving with Numbers
Previous: Refinement
Contents
Integer Representation
So far, we have used the Integer type for most of our programs.
The mathematical definition of ``integer'' includes zero, all positive
whole numbers and all negative whole numbers. In other words, there is
such thing as the largest integer or the smallest integer.
However, in a Pascal program, a variable of Integer type has a
limited range of number that it can represent. This is due to the
internal representation of an Integer in a computer. This chapter
discusses this representation and how it determines the range of values
that a variable of Integer type can represent.
Subsections
Tak Auyeung
2003-12-03