max()

Math / Calculation

Description

Determines the largest value in a sequence of numbers. Supports two or three arguments.

Syntax

float max(float a, float b) float max(float a, float b, float c)

Parameters

NameTypeDescription
afloatfirst value
bfloatsecond value
cfloatthird value (optional)

Returns

float

Related

Under the Hood

Implementation in Processing.h / Processing.cpp:

Loading...