round

Rounds a number.

━ Syntax

[float result] round(float tick, int decimals)

━ Usage

local result = vEngine.math.round(0.5555, 2) --Rounds the number by specified decimals
print(result) --Prints result

Last updated