Get format from NumberFormatInfo

  • Thread starter Thread starter Dave Wurtz
  • Start date Start date
D

Dave Wurtz

All,

I have a NumberFormatInfo object with specific setting (i.e. number of
decimals, thousands separator, decimal separator, currency symbols,
etc.) based upon my application, not my system's setting.

Is there any methods, etc. to get a string that contains the format
based upon this object?

For example, if my decimals are set to 3, can I somehow have this
object return a format like "999,999.999"? Or do I have to create a
method to do this?

Thanks in advance!
Dave Wurtz
 
I forgot to mention that I would like to use the "new" format
expressions to get this "old" format string:

NumberFormatInfo.GetOldFormat("n") // returns "999,999.999"

Thanks.
Dave Wurtz
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top