Add a round function to https://api.crayta.com/math/

Please add a simple round function to math - Crayta API Docs.

Example:
function math:Round(num)
return math.floor(num + 0.5)
end

Maybe also support decimals as a second parameter.

This is because there is no math.round in LUA and i’m guessing we have chosen to expose their math library in Crayta. If we added it, this would have to be our own custom API command.

1 Like

That would be fine. I think a lot of people will need a function like this.

I’ll add it to the internal request system.

1 Like

I can add it to Pennyworth

1 Like