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

后端 未结 5 1946
长发绾君心
长发绾君心 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:40

    If I understand your question correctly what you want is to replace the $ with RM. If so, you need to pass the custom format...

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

提交回复
热议问题