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
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Nitin SontakkeRank #264 · 9.6K reputationPosted Jan 5, 2017, 10:44 PM EST
Tapan PatelRank #614 · 3.9K reputationPosted Jan 6, 2017, 6:07 AM EST
Bikesh SrivastavaRank #108 · 20.3K reputationPosted Jan 6, 2017, 9:20 AM EST