how we can convert 0.0000 into 0.00
we want to convert the value 0.0000 into 0.00 how we can convert
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 May 12, 2014, 8:51 AM
double d = 4965.50;
int i = (int)d; // 4965
sudheer kumarPosted May 12, 2014, 8:43 AM
Nitesh KejriwalPosted May 12, 2014, 7:49 AM
Khan Abrar AhmedPosted May 12, 2014, 7:44 AM
you can try this also
decimal abc= Convert.ToDecimal(0.0000);
string value = string.Format("{0:C}", abc);
VulpesPosted May 12, 2014, 7:30 AM
Anupam SinghPosted May 12, 2014, 7:04 AM
here 2 specify decimal places.
for details go to Math.Round