For instance I have the following value:
0.000018
This is 6 decimal places, but I want to round it up the nearest whole 4th decimal place, so th
There's another method, which is to add half a multiple of 10. For example: round(x+0.005, 2) where x is 0.923 = 0.93 which reduces the maximum floating point division error.
round(x+0.005, 2)