Architecture
Visual Studio
.NET Development
Visual C#
Visual C++
Visual J#
Windows Vista
Microsoft ISV
Game Technologies
VS Team System
Visual Basic
Visual FoxPro
Smart Device
SQL Server
Windows Forms
Software Development Network>> .NET Development>> Round to nearest 0.05
Round to nearest 0.05
Hot Topic
Easiest way to check if a User is in an AD group?
Deploying WSE3 to servers using GPO
instantiation list
Online payment
combobox or Listbox control overlaps
When should I include MCAD?
LinkedList<string>.ToArray() ???
Enterprise Services performance problem
The best way to connect to a access database
How to change temporary file creation path while compiling from command prompt
.NET Development
the server is unable to process the request?
Serialization framework improvements in .Net 2.0?
Is it possible to create one GUI which can connect to MS-Access and MSSQL?
Adding CDOSys.dll reference to project does not generate Interop.ADODB.dll???
Just a simple OpenFileDialog
can not create an SQLConnection object
ASP.NET Membersip and sharing authentication along multiple applications, web snergy
JIT Compilation optimizations
MMC 3.0 SDK
ODBC or OLE DB Informix 7.3 DB Connection through VB.Net 2005
Round to nearest 0.05
Hi,
how would I go about rounding a value to the nearest 0.05 For example, 0.36 should be rounded to 0.35 ... 0.375 should be rounded to 0.4.
Thanks,
Tom
Answer this question
Round to nearest 0.05
gorovvv
Nevermind, Math.Round(d / 0.5, 1) * 0.5; does the trick
Round to nearest 0.05
Answer this question
Round to nearest 0.05
gorovvv