DRAFTThis page is not published. Only visible in development mode.
math module · Scalar Function

math::clamp

Clamp a value within a specified range.

Syntax

RQL

Parameters

NameTypeDescription
valueNumberThe value to clamp
minNumberThe minimum bound
maxNumberThe maximum bound

Return Value

Returns a Number clamped within the specified range.

Examples

$ Clamp value to range
$ ctrl+enter to run

Related Functions