依此类推推荐答案 private void DisplayIndianCurrency() { string fare = "1234567"; decimal parsed = decimal.Parse(fare, CultureInfo.InvariantCulture); CultureInfo hindi = new CultureInfo("hi-IN"); string text = string.Format(hindi, "{0:c}", parsed); lbCurrency.Text = text; } 试试这个.. :) try this.. :)string Ammount = "22400.00";double ammountDouble = Convert.ToDouble(Ammount);CultureInfo cultureInfo = new CultureInfo("en-IN");string ammountString = string.Format(cultureInfo, "{0:C}", ammountDouble);string FinalAamount = ammountString.Substring(4); VB VBDim yourNumber As Double = 1010100.34534Label.Text = yourNumber.ToString("#,##0.00") C# C#double yourNumber = 1010100.34534;Label.Text = yourNumber.ToString("#,##0.00"); 将给你1,010,100.35 will give you 1,010,100.35 这篇关于如何以印度卢比格式显示字符串?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!
10-21 12:17