Skip to content
CryoEagle edited this page Dec 28, 2018 · 4 revisions

round

This function will round your number.

Syntax:

round(val)
Argument Description
double val The number to round

Returns: Real

Description:

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.

Example:

double numberToRound = 20.45;
var wholeNumber = round(numberToRound); //return 20

This code will round number 20.45 to 20.

Back to number_functions

Clone this wiki locally