ASP.NET rounding help

  • Thread starter Thread starter Izi
  • Start date Start date

Izi

Izi

Soldato
Joined
9 Dec 2007
Posts
2,718
I have some decimals as follows:

117.56
117.7
117.63
117.55

I want to round them to 1 dp nearest to 0.5

I.E all of the above I want to be 117.5

Math.Round(decimal,1) just does 117.6, 117.7, 117.5 etc
 
Back
Top Bottom