Round dynamic numbers in steps of 5 or 0.5


Sample case 1 (round to the nearest step of 5):
I have a dynamic value (number) that is 113 and I need it to be rounded up to 115.
Another dynamic value (number) is 112 and need it to be rounded to 110.

Sample case 2 (round the nearest step of 0.5):
The dynamic vale (number) is 1.3 and I need it to be rounded up to 1.5.
Another dynamic value (number) is 0.7 and I needed to be rounded to 0.5.

Any ideas on how to do this using operators?

Try something like value/5:rounded to 0*5


This topic was automatically closed after 70 days. New replies are no longer allowed.