min

Returns the minimum of two numbers.

Syntax

min(x, y)

Parameters

Parameter

Type

Description

x

number

Numeric value

y

number

Numeric value

Return

Returns minimum of x and y.

Examples

Python

x = 4
y = 2
z = min(x, y)

NexScript

x = 4
y = 2
z = min(x, y)