None of the other functions worked properly for me (one rounded 3.333 up to 10) so I wrote my own.
If you just want to round up a decimal to the next integer, then this one works great and is very simple. Essentially truncate will always round down, so you add one to the result. Simple...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.