我有这条线
@String.Format("{0:C}", @price)
Run Code Online (Sandbox Code Playgroud)
在我的剃刀视图中.我希望它在价格前显示一个美元符号,但它显示一个英镑符号.我该如何实现这一目标?
I want to add a comma in the decimal to string conversion like
For
decimal number = 1000000000.000;
Run Code Online (Sandbox Code Playgroud)
it should give
string str = 1,00,00,00,000.00
Run Code Online (Sandbox Code Playgroud) 我想将十进制转换为逗号分隔的字符串为INR货币
1.59 => 1.59
11.59 => 11.59
111.59 => 111.59
1111.59 => 1,111.59
11111.59 => 11,111.59
111111.59 => 1,11,111.59
1111111.59 => 11,11,111.59
11111111.59 => 1,11,11,111.59
111111111.59 => 11,11,11,111.59
1111111111.59 => 111,11,11,111.59
Run Code Online (Sandbox Code Playgroud)
我们怎样才能做到这一点?