i want to convert 123456 in form of indian currency(1,23,456).
how is this possible
Convert numeric value
4 Answers
Know the answer? Post it. Somebody with the same question will find it here.
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
Iftikar HussainRank #423 · 5.9K reputationPosted Jul 17, 2013, 10:54 PM EDT
Try like this
with decimal
without decimal
Regards,
Iftikar
Sanjeeb LenkaRank #301 · 8.3K reputationPosted Jul 17, 2013, 11:20 PM EDT
using System.Globalization;
double dblValue = 12445756757.6789;
string s = dblValue.ToString("N1", CultureInfo.CreateSpecificCulture("hi-IN"));
arvind nitin16 reputationPosted Jul 22, 2013, 2:56 AM EDT
i face this problem .... Error1No overload for method 'ToString' takes 2 arguments from this code
Sanjeeb LenkaRank #301 · 8.3K reputationPosted Jul 22, 2013, 2:58 AM EDT
i checked the code it working perfectly in my system. in web, windows and console;