# MINIMUM

Updated: 10/19/2021, 9:29:48 PM
Created: 10/19/2021, 9:29:48 PM
Last Updated By: Kevin Munoz
Read Time: 1 minute(s)

Tags: dynamic arrays

# Description

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

MINIMUM(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. If the lowest number is less than zero then it is returned with a leading zero, e.g. 0.42

An example of use would be as:

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

to display 6

See also: MAXIMUM.

Go back to jBASE BASIC

Go back to Programmers' Reference Guide