rounding values to the nearest 5 or 10

Giganews Newsgroups
Subject: rounding values to the nearest 5 or 10
Posted by:  Milsnips (milsni…@hotmail.com)
Date: Thu, 27 Apr 2006

hi there,

any help with this one? i have say, numbers  which i'd like to be rounded to
the nearest 5 or 10, example:

147.24 -->>150
181.99 -->> 180
824.18 -->>825
822.49 -->>820

and so on.. is there anything that i can do this right away in .net or would
i have to somehow create my own little rounding function for this?

thanks,
Paul

Replies