Possible Duplicate:
How to force a sign when formatting an Int in c#
Format number with + and – sign
I would like to sign numbers when there are positive or negative (c#):
text = cname + " " + String.Format("{0:0.#}", move) + "% , \n " + text;
I want for positive numbers a format like “+2.5%”.
Any ideas?
Check on MSDN : Format Number To Display
; - Section separator– Defines sections with separate format strings for positive, negative, and zero numbers.