Function Reference


_Min

Evaluates which of the two numbers is lower

#include <Math.au3>
_Min ( $iNum1, $iNum2 )

Parameters

$iNum1 First number.
$iNum2 Second number.

Return Value

Success: the lower of the two numbers.
Failure: 0 and sets the @error flag to non-zero
@error: 1 - $iNum1 isn't a number.
2 - $iNum2 isn't a number.

Remarks

This function works with floats as well as integers.

Related

_Max

Example

#include <Math.au3>
#include <MsgBoxConstants.au3>

Local $iMin = _Min(1, 10) ; Returns 1.
MsgBox($MB_SYSTEMMODAL, '', 'Minimum value: ' & $iMin)