max

Returns maximum of two numbers.

Syntax

max(x, y)

Parameters

Parameter

Type

Description

x

number

Numeric value

y

number

Numeric value

Return

Returns maximum of x and y.

Examples

Python

x = 7
y = max(x, 5)

NexScript

x = 7
y = max(x, 5)