Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Creator: Bolodefchoco
- --Made in: 18/09/2016
- --Last update: 18/09/2016
- --[[ Notes:
- Does:
- Reduz o número decimal
- Args:
- x --> O número decimal (Exemplo: 13.33333)
- n --> A quantidade de números desejados (1 = 13.3, 2 = 13.33)
- ]]--
- math.reduceDec = function(x,n)
- local d = n and "1"..("0"):rep(n) or 100
- return math.floor(x*d)/d
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement