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
  • 981
  • 2
  • 8
  • 24
Prasad Zagade
  • 63
  • 2
  • 10

1 Answers1

1

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

mjpolak
  • 721
  • 6
  • 24