转换数值 [英] convert numeric value
本文介绍了转换数值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想以印度货币(1,23,456)的形式转换123456.
这怎么可能
i want to convert 123456 in form of indian currency(1,23,456).
how is this possible
推荐答案
参考这些链接
使用C#将十进制转换为印度卢比货币格式 [ ^ ]
c#中逗号分隔的整数 [ ^ ]
将数字转换为逗号分隔值 [ ^ ]
问候......:笑:
Refer to these links
Converting Decimal to Indian Rupee Currency format using C#[^]
Comma separated integer in c#[^]
Converting Number to Comma Seperated Values[^]
Regards.. :laugh:
这不是一个转换。这仅仅是数值的格式化。请参阅:
http://msdn.microsoft.com /en-us/library/system.decimal.tostring.aspx [ ^ ],
http://msdn.microsoft.com/en-us/library/dwhawy9k.aspx [ ^ ],
http://msdn.microsoft.com/en-us/library/0c899ak8.aspx [ ^ ]。
您的格式将类似于0,00,000,根据您的文化,IFormatProvider
的适当实例。另请参阅:
http://msdn.microsoft.com /en-us/library/system.globalization.cultureinfo.aspx [ ^ ]。
-SA
This is not quite a conversion. This is merely formatting of a numeric value. Please see:
http://msdn.microsoft.com/en-us/library/system.decimal.tostring.aspx[^],
http://msdn.microsoft.com/en-us/library/dwhawy9k.aspx[^],
http://msdn.microsoft.com/en-us/library/0c899ak8.aspx[^].
Your format will be something like "0,00,000", with appropriate instance ofIFormatProvider
based on your culture. See also:
http://msdn.microsoft.com/en-us/library/system.globalization.cultureinfo.aspx[^].
—SA
http://adsinghcodes.blogspot.in/2010/03 /convert-money-to-indian-currency-format.html [ ^ ]
希望这会有所帮助......
http://adsinghcodes.blogspot.in/2010/03/convert-money-to-indian-currency-format.html[^]
hope this will help...
>
这篇关于转换数值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文