Isthereanyfastersolutionthanthis?在谷歌搜索和使用其他人的代码上花了一些时间后,我做了一个快速修复,可重用函数适用于高达99,99,99,999的数字。number2text(1234.56);将返回仅一千二百三十四卢比和五十六个硬币。functionnumber2text(value){varfraction=Math.round(frac(value)*100);varf_text="";if(fraction>0){f_text="AND"+convert_number(fraction)+"PAISE";}returnconvert_number
我有一个Windows应用程序,我需要将在文本框中输入的金额转换为ruppes和paise格式的单词。例如我的金额是2356.54那么它应该只显示2356卢比和54派萨然而,我有转换代码amttowords但我无法显示paise。我包含我的代码以供引用。privatevoidbtntowords_Click(objectsender,EventArgse){MessageBox.Show(words(Convert.ToInt32(textBox1.Text)));}publicstringwords(intnumbers){intnumber=numbers;if(number==0
这个问题在这里已经有了答案:Howtoconvertdecimalnumbertowords(moneyformat)usingPHP?(14个答案)关闭8年前。使用PHP如何将数字转换为带有paise(十进制值)的印度货币字格式输入190908100.25我们需要的输出nineteencroresninelakheightthousandonehundredRupees.twofivePaise我希望核心php中有这种转换方法。