string format

  • Thread starter Thread starter July
  • Start date Start date
J

July

Hi, anyone knows how to format a number into two decimal
positions such as 100.00? I was trying to use
myStringName.ToString("d"), but seems not working.
 
Try using myStringName.ToString("C") - this converts to
currency format.
You may also want to look at the IFormatProvider interface
under System namespace.
 
Back
Top