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
 
Back
Top