Related to Decimal number
How to allow numbers to 2 decimal in MVC4?
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
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
VulpesRank #55 · 29.2K reputationPosted Jan 14, 2015, 1:50 PM EST
d.ToString("F2")
Pradeep ShetRank #595 · 4K reputationPosted Jan 15, 2015, 10:33 PM EST
string d = "2.4444".ToString("f2");
string.Format("{0:0.00}", "2.4444");
Hope this helps you. Mark it as answered