Round
This method is used to round decimals.
Example usage is below:
c=Round(a,b)
Here, “a” is the value you want to round its decimals.
“b” is the value which defines the number of decimals for rounding.
“c” is the new value after rounding.
For example, let’s say that:
a= 13.4789624
And let’s round its decimals to 4 digits.
Then we have to write:
b=Round(a,4)
Then the result will be
b= 13.479
Note that Lua also has its own rounding function, but we always use our own “Round” method instead.