~/forever/addon-api/function/math.clamp
math.clamp
documented function · LuaMathExtensions
math.clamp(value, minimum, maximum) : clampedValueClamps a value to the inclusive range defined by the minimum and maximum values.
──ARGUMENTS
- value
- number (The value to clamp.)
- minimum
- number (The inclusive lower bound.)
- maximum
- number (The inclusive upper bound.)
──RETURNS
- clampedValue
- number (The clamped value.)
──DETAILS
- Secret Arguments
- AllowedWhenUntainted
──VERSION HISTORY
Present since at least 1.60.1.70707, the first build we track.