home *** CD-ROM | disk | FTP | other *** search
- {
-
- Function Min_int accepts two integers as arguments and returns
- the lesser of the two.
-
- }
-
- function
- MIN_INT(
- x,
- y : integer
- ): integer;
-
-
- BEGIN {MIN_INT}
-
- If x < y then
- Min_Int := x
- Else
- Min_Int := y
-
- END; {MIN_INT}
-
-
-
- {
-
- Function Min_Real accepts two real numbers as arguments and
- returns the lesser of the two.
-
- }
-
- function
- MIN_REAL(
- x,
- y : real
- ): real;
-
-
- BEGIN {MIN_REAL}
-
- If x < y then
- Min_Real := x
- Else
- Min_Real := y
-
- END; {MIN_REAL}
-