将数值转换为印度卢比 [英] Convert numeric value to indian rupees
本文介绍了将数值转换为印度卢比的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好
我已经在sqlserver中将产品成本"设为数值数据类型
在fornt(C#)最终值中显示为dis 1000.00
但我想要像dis 1,000这样的格式
所以任何人都可以帮助我........
Hi all
I have taken Product Cost is numeric datatype in sqlserver
in fornt(C#) end value is displayed like dis 1000.00
but i want format like dis 1,000
so any one could you help me plz........
推荐答案
^ ]
http://stackoverflow.com/questions/752145/use-a-custom- 000-separator-in-c [ ^ ]
或者如果您希望以1,00,00,000而不是10,000,000为1000000,那么您可以尝试string.format("{0:##,##,##,###.##}", MyNumber)
http://www.csharp-examples.net/string-format-double/[^]
http://stackoverflow.com/questions/752145/use-a-custom-thousand-separator-in-c[^]
or in case you want in 1,00,00,000 instead of 10,000,000 for 1000000. Then you can trystring.format("{0:##,##,##,###.##}", MyNumber)
这篇关于将数值转换为印度卢比的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文