# MAXIMUM

Updated: 11/30/2021, 7:00:45 PM
Created: 11/30/2021, 7:00:45 PM
Last Updated By: Jake Tuttle
Read Time: 1 minute(s)

Tags: dynamic arrays

# Description

The function returns the element of a dynamic array with the highest numerical value. It takes the general form:

MAXIMUM(DynArr)
1

Where DynArr should evaluate to a dynamic array. Null dynamic array elements are treated as zero. Non-numeric dynamic array elements are ignored.

An example of use is as:

var_Arr =" "
FOR inx = 2 TO 4
    INS inx * 3 BEFORE var_Arr<-3>
NEXT inx
CRT MAXIMUM(var_Arr)
1
2
3
4
5

to display the number 12.

See also: MINIMUM.

Go back to jBASE BASIC

Go back to Programmers' Reference Guide