floatclamp

Syntax

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

Usage

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

Description

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

Return

The Value clamped between MinValue and MaxValue