min Function

Retrieves the lesser of the two figures.


anytype min(anytype object1, anytype object2)

Parameter

Description

object1

The first figure.

object2

The second figure.

object1 or object2—whichever is the lesser.

static void minExample(Args _arg)
{
    anytype a;
    real r = 3.0;
    real s = 2.0;
    ;
 
    a = min(r, s);
    print num2Str(a, 1, 2, 1, 1) + " is less than the other number.";
 
    pause;
}

Community Additions

ADD
Show: