如何将数字转换为印度数字格式 [英] How do I convert numbers to Indian Number format
本文介绍了如何将数字转换为印度数字格式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在我的网络应用程序中,用户需要在文本框中输入数字,而他们输入时会自动转换为印度卢比格式。
示例:如果我输入123456它会自动转换为1,23,456之类的。
如何在javascript中执行此操作?
Hi,
In my web application the user need to type numbers in textbox, while they are typing it will convert to Indian rupee format automatically.
Example: If i type 123456 it will convert automatically to 1,23,456 like.
How can i do this in javascript?
推荐答案
http://stackoverflow.com/a/16037650 [ ^ ]
请参阅以下链接,这可能对您有所帮助
http://stackoverflow.com/questions/17018842/inr-currency-format-in-asp-net [ ^ ]
Refer below link this might be helpful to you
http://stackoverflow.com/questions/17018842/inr-currency-format-in-asp-net[^]
你好,
试试这个
Hello ,
Try this
Console.WriteLine(String.Format("{0:n}", 1285534.45));
和输出将是
and out put will be
1,285,534.45
这篇关于如何将数字转换为印度数字格式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文