Go Back   Velocity Reviews > Newsgroups > ASP Net
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

ASP Net - Re: rounding values to the nearest 5 or 10

 
Thread Tools Search this Thread
Old 04-27-2006, 01:09 PM   #1
Default Re: rounding values to the nearest 5 or 10


Check out Math.Round
http://msdn2.microsoft.com/en-us/lib...0k(VS.80).aspx
"Milsnips" <> wrote in message
news:%...
> 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
>





Greg Young [MVP]
  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Cisco QOS MIB values required manjunatht Hardware 1 06-13-2008 02:34 PM
Values set by javascript are not reflected in serverside(.Net) rchimakurty Software 2 11-28-2007 10:07 AM
Checkbox values problem in gridview thanigaimani.thirumalai Software 0 11-09-2007 05:12 AM
Cisco QOS MIB values required manjunatht Software 0 09-11-2007 05:40 PM
How to make the form View save it's field values in Visual Stdio .NET asammoud Software 0 07-17-2007 10:57 AM




SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46