string.Format - force "+"

  • Thread starter Thread starter Hilton
  • Start date Start date
H

Hilton

Hi,

I'm sure this is simple, but I cannot seem to find it:

I need:
1. The sign to always be shown
2. The thousand "," separator

I'm currently using {0:N} for the thousand separator, how to I force it to
show "-1,234" and "+1,234"; i.e. the "+" sign when positive.

Thanks,

Hilton
 
Back
Top