Related to Decimal number
How to allow numbers to 2 decimal in MVC4?
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Pradeep ShetPosted Jan 16, 2015, 3:33 AM
string d = "2.4444".ToString("f2");
string.Format("{0:0.00}", "2.4444");
Hope this helps you. Mark it as answered
VulpesPosted Jan 14, 2015, 6:50 PM
d.ToString("F2")