Hello everyone, I am looking to display a value in 3 digit after the comma on C #.
I put this code but it appears to me 11.5
Code
Graphic.DrawString(""+montant.ToString(".###"), lCalibri10Bold, Brushes.Black, 500, dis);Graphic.DrawString(""+montant.ToString(".###"), lCalibri10Bold, Brushes.Black, 500, dis);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
Francis SusaimichaelRank #466 · 5.4K reputationPosted Oct 26, 2015, 1:22 AM EDT
Priyaranjan K SRank #45 · 32.5K reputationPosted Oct 26, 2015, 2:36 AM EDT
abdelwaheb ammarRank #4,571 · 337 reputationPosted Oct 26, 2015, 3:02 AM EDT
Priyaranjan K SRank #45 · 32.5K reputationPosted Oct 26, 2015, 3:07 AM EDT
abdelwaheb ammarRank #4,571 · 337 reputationPosted Oct 26, 2015, 3:14 AM EDT
Priyaranjan K SRank #45 · 32.5K reputationPosted Oct 26, 2015, 3:23 AM EDT