How to convert this number 34900 to 349.00 and 335100 to 3,351.00 in c#.
Convert amount in c#
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
How to convert this number 34900 to 349.00 and 335100 to 3,351.00 in c#.
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
Amit MohantyRank #112 · 20K reputationPosted Jun 2, 2022, 3:00 AM EDT
Sachin SinghRank #66 · 26.2K reputationPosted Jun 2, 2022, 4:12 AM EDT
Amit Mohanty's solution will work if there are 2 zeros at end. If you have variable number of 0 at end ex:- 1 zero or 4 zero or 9 zero then use this