jeya pandi

jeya pandi

  • NA
  • 62
  • 18.9k

Rounding off Decimal Digits

Jan 6 2017 1:28 AM
Hi,
 
I need to convert my value 2.8634 to 2.8. I tried the following ,
 
var no = Math.Round(2.8634,2,MidpointRounding.AwayFromZero)
 
I'm getting 2.87.
 
Suggest me some ideas how to convert.
 
Thanks 

Answers (3)