Hi all,
I have a value with 2 decimals, say 21.67, that I would like to round to the nearest integer of 5. Thus, it would become 20.00. Could anyone point me in the right direction?
Thanks much!
Jami
The following 3 operations should give you the closest integer in increments of 5 for any X.
First set X. Then divide by your block factor. Take the result and round it to the closest integer. Take that result and multiply it by your block factor.
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.