0

I am trying get rounded off to nearest of 5

example :

When Range is   | Rounded off 
------------------------------
102.5 - 107.4   |  105    
107.5 - 112.4   |  110

How to achieve this ?

please suggest me.

Thank you.

User_1191
  • 965
  • 1
  • 8
  • 23
Prasad Zagade
  • 53
  • 1
  • 10

1 Answers1

1

This should work:Math.Round(x/5.0)*5

mjpolak
  • 607
  • 6
  • 21