-
Declaration:
- Procedure Dec (Var X : Any ordinal type[; Decrement : Any ordinal type]);
-
Description:
- Dec decreases the value of X with Decrement. If Decrement isn’t specified, then 1 is taken
as a default.
-
Errors:
- A range check can occur, or an underflow error, if an attempt it made to decrease X below
its minimum value.
-
See also:
- Inc (513)
Listing: refex/ex14.pp