Community discussion forum

how to display currency in india format like 11,12,345?

Tags: India
  • 1 year ago

    hai,
          i do my project in vb.net 2005 windows application.In my project,currency is display like 1,213,456.00.so,i want to display the currency in india format like 12,13,456.00.how to do these in vb.net windows application.

  • 1 year ago

    Is your system set to Indian regional settings?  If so then you should just let the system handle the formatting automatically:

    myDecimal.ToString("c")
    That will create a String in the local currency format.  Note that the "c" is the standard format string for currency.

    If you want to use a format other than the local one then you need a NumberFormatInfo object with its currency-related properties set appropriately.  To do this you have two choices:

    1. Create a CultureInfo object for the appropriate culture and use its NumberFormat property.

    2. Create your own NumberFormatInfo object and set all its properties yourself.

    Once you have your NumberFormatInfo you do basically as before, except you specify the format rather than accepting the default:

    myDecimal.ToString("c", myNumberFormatInfo)
  • 1 year ago

    Dear Sir

     my problem is same your problem

    please reply me if u got answer this problem

    Hari babu Sharma

    haribabusharma@gmail.com

     

  • 1 year ago

    Um, the answer has already been provided.  Do you want the silver platter too?  Have you made any attempt to read the documentation for the NumberFormatInfo or CultureInfo classes, or are you waiting for someone else to do everything for you?

Post a reply

Enter your message below

Sign in or Join us (it's free).

We'd love to hear what you think! Submit ideas or give us feedback