Decimal Format

  • Thread starter Thread starter Jim Heavey
  • Start date Start date
J

Jim Heavey

According to "professional Asp.Net 1.0" it says that to format Decimal you
can use the Format Character of "D" or "d", but everytime I try this I get
an exception "Format specifier invalid".

I am guessing that there must be a misprint. Is that correct? What
character should I use?
 
Jim, See
ms-help://MS.VSCC/MS.MSDNQTR.2003FEB.1033/cpguide/html/cpconstandardnumericf
ormatstrings.htm.
D is for integer types only. Use C for currency or construct your own
custom string.
Ron Allen
 
Back
Top