LM.Clamp(f, min, max)

Version added: before 9.5
Clamps a value to ensure that it is within certain bounds

Arguments:

Name Type Description Default Ver
f real A number to clamp < 9.5
min real Minimum acceptable value < 9.5
max real Maximum acceptable value < 9.5

Return value:

real the clamped value
Clamps a value to ensure that it is within certain bounds. This function returns min if value is less than min, max if value is greater than max, and value otherwise.
<< Back to LM