-
-
Notifications
You must be signed in to change notification settings - Fork 18
round
CryoEagle edited this page Dec 28, 2018
·
4 revisions
This function will round your number.
round(val)
Argument | Description |
---|---|
double val |
The number to round |
Returns: Real
This function will round your number, this function is usefull when you have decimal number but you want whole number like 5.82 to 6.
double numberToRound = 20.45;
var wholeNumber = round(numberToRound); //return 20
This code will round number 20.45 to 20.
Back to number_functions