Created
October 25, 2013 04:34
-
-
Save mephraums/7149480 to your computer and use it in GitHub Desktop.
Roundup Function
This file contains hidden or 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 roundUp(number, digits) | |
{ | |
var factor = Math.pow(10,digits); | |
return Math.ceil(number*factor) / factor | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment