本文介绍了如何以印度卢比格式显示文本框值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在文本框中有一些金额值...通常文本ox值会显示像这样 - 2073635.00..i必须显示印度卢比格式的值,如此-20,73,635.00 ..我想要语法为此..请帮助我....
I have some amount value in the text box..usually the text ox value will show like this-2073635.00..i have to show the value in the Indian rupees format like this-20,73,635.00..I want the syntax for this..please help me....
推荐答案
double aNumber = 2073635.00;
System.Globalization.CultureInfo info = System.Globalization.CultureInfo.GetCultureInfo("hi-IN");
string str = aNumber.ToString("C2",info);
现在str是:(卢比标志)20,73,635.00
为什么这样看起来如此复杂?
在Firefox中复制/粘贴期间卢比标志被破坏[/ Edit]
And now str is: "(Rupee sign) 20,73,635.00"
Why does this look so complicated?
The rupee sign gets destryoed during copy/paste in Firefox[/Edit]
这篇关于如何以印度卢比格式显示文本框值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!