Seiki Batch Script > Mathematical Functions

min

Returns the smaller of two signed integers

Class: Mathematical

Parameters:  x – An integer number

                     y – An integer number

Syntax: returnValue=min(x, y)

Returns: An integer number

Remarks: None

Example:

//Example for the mathematical min method

x=4 //Set first value

y=5 //Set second value

result=min(x, y) //Calculate result (= 4)

message(“Minimum of “ + x + “ and“ + y + “ is “ + result) //Display results message