- You are here
- Microsoft Newsgroups Archived.At
- microsoft.public.dotnet.framework.aspnet
- 2006 April
- rounding values to the nearest 5 or 10

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

- Re: rounding values to the nearest 5 or 10 posted by GĂ¶ran Andersson on Fri, 28 Apr 2006
- Re: rounding values to the nearest 5 or 10 posted by Greg Young [MVP] on Thu, 27 Apr 2006
- Re: rounding values to the nearest 5 or 10 posted by chaz on Thu, 27 Apr 2006