如何以印度卢比格式显示文本框值 [英] how to display text box value in Indian rupees format

查看:108
本文介绍了如何以印度卢比格式显示文本框值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在文本框中有一些金额值...通常文本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....

推荐答案

尝试 Math.Round方法 [ ^ ]:将十进制值四舍五入到最接近的整数。如果值在两个其他数字之间,则参数指定如何舍入值。

格式化印度货币格式的数字 [ ^ ]

http://www.ozgrid.com/forum/showthread.php?t=10226 [ ^ ]

http://www.c-sharpcorner.com/Forums/Thread/98755/format-the-number-in-indian-currency -format.aspx [ ^ ]

http://www.dotnetspider.com/forum/252701-Display-Number-Rupees-format。 aspx [ ^ ]
Try Math.Round Method[^] : It rounds a decimal value to the nearest integer. A parameter specifies how to round the value if it is midway between two other numbers.
format the number in indian currency format[^]
http://www.ozgrid.com/forum/showthread.php?t=10226[^]
http://www.c-sharpcorner.com/Forums/Thread/98755/format-the-number-in-indian-currency-format.aspx[^]
http://www.dotnetspider.com/forum/252701-Display-Number-Rupees-format.aspx[^]


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]


查看此链接



http ://vinayak-blog.blogspot.com/2011/07/indian-currency-format-for-rdl-or-rdlc.html [ ^ ]


这篇关于如何以印度卢比格式显示文本框值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆