我正在尝试格式化货币值以以英镑输出,但在尝试从 $ 更改为 £ 时遇到问题。我目前有以下...
numberFormat(TOTAL_VALUE_GBP,'_$,9.99')
我需要做什么才能输出为 £?
最佳答案
您可以使用 lsCurrencyFormat()
函数。首次使用setLocale()
在此处将区域设置信息设置为您想要的(英语(英国))。然后使用 lsCurrencyFormat()
.
<cfset setLocale('English (UK)')>
<cfset amountInGBP = lsCurrencyFormat(100000, "local")>
<cfoutput>#amountInGBP#</cfoutput>
关于coldfusion - 将数字格式从美元更改为英镑,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55239716/