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.
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
VulpesRank #55 · 29.2K reputationPosted May 12, 2014, 4:51 AM EDT
double d = 4965.50;
int i = (int)d; // 4965
Anupam SinghRank #643 · 3.7K reputationPosted May 12, 2014, 3:04 AM EDT
here 2 specify decimal places.
for details go to Math.Round
VulpesRank #55 · 29.2K reputationPosted May 12, 2014, 3:30 AM EDT
Khan Abrar AhmedRank #778 · 3K reputationPosted May 12, 2014, 3:44 AM EDT
you can try this also
decimal abc= Convert.ToDecimal(0.0000);
string value = string.Format("{0:C}", abc);
Nitesh KejriwalRank #253 · 9.9K reputationPosted May 12, 2014, 3:49 AM EDT
sudheer kumarRank #6,677 · 259 reputationPosted May 12, 2014, 4:43 AM EDT