mat1986
mat1986

Reputation: 135

Changing numberFormat from Dollar to British Pound

I'm trying to format a currency value to output in GBP, but I'm having trouble trying to change from $ to £. I currently have the following...

numberFormat(TOTAL_VALUE_GBP,'_$,9.99')

What do I need to do to output as a £?

Upvotes: 3

Views: 229

Answers (1)

rrk
rrk

Reputation: 15875

You can use lsCurrencyFormat() function. First use setLocale() to set locale information as the one you want (English (UK)) here. Then use lsCurrencyFormat().

<cfset setLocale('English (UK)')>
<cfset amountInGBP = lsCurrencyFormat(100000, "local")>
<cfoutput>#amountInGBP#</cfoutput>

Upvotes: 5

Related Questions