Files
Digpkg/math/docs/clamp.md

16 lines
328 B
Markdown
Raw Normal View History

2026-01-23 16:47:56 +11:00
# math_Clamp
Clamps a number between a minimum and maximum value.
## Arguments
- number (double): The number to be clamped
- min (double): Minimum value
- max (double): Maximum value
## Returns
result (double): The number after being clamped
## Example
```python
call !math_Clamp 1.5 0.0 1.0 &result
println $result # 1.0
```