Please enable JavaScript to view this site.

ESL Documentation

MATHLIB Subroutine

Return the largest value in an integer array.

call MAXINT(ARRAY_IV, MAXIMUM_IV)

ARRAY_IV

An integer array identifier.

MAXIMUM_IV

The name of an integer variable to hold the result of the subroutine.

Description

Use this subroutine to return the largest value in an integer array. The value is returned in MAXIMUM_IV.

Example

include mathlib.inc

integer IntegerArray[2,3] is -6, 8, 2,

3, 4, 1

action MaxInt is

call MAXINT(IntegerArray, IResult)

send "Max value of IntegerArray is " IResult "\n" to

errorlog

response to start

action MaxInt

exit