>wowhelm_
~/forever/addon-api/function/math.saturate

math.saturate

documented function · LuaMathExtensions
math.saturate(value) : saturatedValue

Clamps a value to the inclusive range [0, 1].

──ARGUMENTS
value
number (The value to clamp.)
──RETURNS
saturatedValue
number (The value clamped to the inclusive range [0, 1].)
──DETAILS
Secret Arguments
AllowedWhenUntainted
──VERSION HISTORY

Present since at least 1.60.1.70707, the first build we track.