Skip to main content

min

Syntax Format​

min(lvalue, rvalue)

Overview​

The min function provides the value, which is lesser among the given data type. The data type can be a series as well as a sequence of numbers. At least two values need to be present in the parameters of the function to receive a result. This function is useful in scripts where you need to determine the lesser value among those, taken into calculation.

Parameters​

ParameterTypePurpose
lvaluenumeric or seriesFirst value, taken into calculation
rvaluenumeric or seriesSecond value, taken into calculation

Returns: series if lvalue and/or rvalue is series, numeric otherwise.

Example​

min_value = min(1, 5, 10) -- the result will be 1