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.
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.
VulpesPosted Jul 14, 2013, 9:31 AM
double value = 4.1780821917;
string result = value.ToString("F5"); // 4.17808
Iftikar HussainPosted Jul 14, 2013, 5:59 AM
You can use math.round like this
Regards,
Iftikar