Hosting and domain costs until October 2024 have been generously sponsored by dumptruck_ds. Thank you!
rint
From Quake Wiki
float rint(float val)
Contents
Usage
Rounds the passed number to the nearest whole number.
Parameters
- val
- The number to round.
Return
Returns the rounded number.
Example
// Performs an action with a 50/50 chance float chance = random(); if (rint(chance)) DoAction();