Format a double value like currency but without the currency sign (C#)

后端 未结 9 933
無奈伤痛
無奈伤痛 2020-12-25 10:07

I feed a textbox a string value showing me a balance that need to be formatted like this:

###,###,###,##0.00

I could use the value.ToString

9条回答
  •  醉酒成梦
    2020-12-25 10:29

    string result=string.Format("{0:N2}", value); //For result like ### ### ##.##

提交回复
热议问题