i am in problems . i need to display 5 character after decimal. like this...
| Amount Rate dayes
|
I need to show result only 5 character after decimal in asp.net c#
IF any body help me best regurds...
| Amount Rate dayes
|
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 attend4days leftRegister
Iftikar HussainRank #423 · 5.9K reputationPosted Jul 14, 2013, 1:59 AM EDT
You can use math.round like this
Regards,
Iftikar
VulpesRank #55 · 29.2K reputationPosted Jul 14, 2013, 5:31 AM EDT
double value = 4.1780821917;
string result = value.ToString("F5"); // 4.17808