Hosting and domain costs until October 2024 have been generously sponsored by dumptruck_ds. Thank you!
floor
From Quake Wiki
float floor(float val)
Contents
Usage[edit]
Rounds the passed number down to the next lowest whole number.
Parameters[edit]
- val
- The number to round down.
Return[edit]
Returns the rounded down number.
Example[edit]
// When taking damage, remove the fractional part float damageToTake = floor(damage); e.health -= damageToTake;