Custom Currency symbol and decimal places using decimal.ToString(“C”) and CultureInfo

后端 未结 5 1929
长发绾君心
长发绾君心 2021-01-05 05:00

I have a problem with decimal.ToString(\"C\") override. Basically what I wants to do is as follows:

CultureInfo usCulture = new CultureInfo(\"en         


        
5条回答
  •  时光说笑
    2021-01-05 05:53

    lblPaids.Text = paid.ToString("C",usCulture.Name);
    

    Or

    lblPaids.Text = paid.ToString("C",LocalFormat.Name);
    

    must Work

提交回复
热议问题