floatclamp

Синтаксис

stock Float:floatclamp(Float:Value, Float:MinValue, Float:MaxValue)

Употреба

Value
The value to be clamped
MinValue
Minimum value
MaxValue
Maximum value

Описание

Clamps a value between a minimum and a maximum floating point value

Връщаща стойност

The Value clamped between MinValue and MaxValue