numbers
Table of Contents
Functions
- clip() : float
- Bounds a number value between two numbers.
Functions
clip()
Bounds a number value between two numbers.
clip(float $value, float $min, float $max) : float
Parameters
- $value : float
-
The value to clamp.
- $min : float
-
The minimum value of the range.
- $max : float
-
The maximum value of the range.
Tags
Return values
float —A value bounded between $min and $max.