From Bohemia Interactive Community
Hover & click on the images for description
Description
- Description:
- Clamps provided value within min..max range.
- Execution:
- call
- Groups:
- Math
Syntax
- Syntax:
- [value, min, max] call BIS_fnc_clamp
- Parameters:
- value: Number - value to be clamped
- min: Number - (Optional, default 0) lower limit
- max: Number - (Optional, default 0) upper limit
- Return Value:
- Number - the clamped value
Examples
- Example 1:
- Example 2:
Additional Information
- See also:
- min max
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here!
Add Note