Another way that uses your brain a little more is
to do your own rounding.
a = 1.010899
n = 4 'number of digits to have after decimal
PRINT (INT(a * 10 ^ (n + 1) + 5) \ 10) / 10 ^ n
Print using does not round the variable, it only display the variable in a rounded fashion. Your variable 'a' will still = 1.010899. To round the variable to 4 decimals you can write a function.
Jstepun, I know you are new to the site so you may have missed the link at the bottom left of each post. It will say something like:
Was this post helpful?
Vote dpaulson Tipmaster!
Everybody here believes a simple "thank you" is more than enough reward for helping out... but sometimes we get an extra tickle when somebody clicks that little link.
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.