using System.Globalization;
Label11.Text = totalPrice.ToString("0#,#0.00");
我的问题是我以印度货币格式显示这个数字。请帮帮忙。
发布于 2017-07-06 09:27:58
粘贴完整的代码,问题可能不在您认为的地方...
但你可以试试这个
NumberFormat formatter = NumberFormat.getCurrencyInstance(new Locale("en", "IN"));
String convRupees = formatter.format(totalPrice);
Label1.Text = convRupees
编辑-这就是你在Java语言中做的,这是在C#中
CultureInfo hindi = new CultureInfo("hi-IN");
string conv = string.Format(hindi, "{0:c}", totalPrice.toString());
Label11.Text = conv;
https://stackoverflow.com/questions/44944243
复制相似问题