Variable Types
• Integer constants
Whole numbers between -32768 and 32767.
Integer constants do not contain decimal
points.
• Fixed-point constants
Positive or negative real numbers, i.e.,
numbers that contain decimal points.
• Floating-point constants
Positive or negative numbers represented in
exponential form (similar to scientific
notation). A floating-point constant consists of
an optionally signed integer or fixed-point
number (the mantissa) followed by the letter E
and an optionally signed integer (the
exponent). The range for floating-point
constants is
10-
38
to
10+
38
•
Examples:
235.988E-7
=
.0000235988
2359E6
=
2359000000
(Double precision floating-point constants are
denoted by the letter D instead of E. See later
in this chapter.)
3-3