Last active
August 29, 2015 14:13
-
-
Save MyNameIsKodos/268beb62d14ab163aaeb to your computer and use it in GitHub Desktop.
Lua Math Lib by Kodos
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function round(num, idp) local mult = 10^(idp or 0) return math.floor(num * mult + 0.5) / mult end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment