Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

LSCurrencyFormat not UK friendly??

Status
Not open for further replies.

csteinhilber

Programmer
Aug 2, 2002
1,291
0
0
US
I have the following code:

Code:
<CFSET origlocale = SetLocale(&quot;English (UK)&quot;)>

<CFOUTPUT><P>Cost in UK: <b>#LSCurrencyFormat(100000, &quot;local&quot;)#</b><BR></CFOUTPUT>

<CFSET templocale = SetLocale(origlocale)>

But the output returns
Cost in UK: 100000

not
Cost in UK: &#8356;100,000.00
as expected.

In fact, even
Code:
#LSCurrencyFormat(100000, &quot;international&quot;)#
doesn't produce GBP100,000.00 as the docs suggest.

Has anyone gotten this to work?
I'm running CF 5.0.


Hope it helps,
-Carl
 
Tek,
Thanks much. I found that technote too.
Unfortunately, I'm running on Solaris... so it doesn't apply. :-(

All other locales work perfectly, except for &quot;English (UK)&quot;.

Sounds like a true bug.
Hope it helps,
-Carl
 
I have also had trouble getting the formatting functions to work properly when displaying information from our offices where dollars are not the local currency. I invented my own custom tags for accomplishing this. They aren't that hard to write and they will work on any platform. Below is an example:

<cf_MyUKFormat thenumber=&quot;10000000.89&quot;>

Listing from MyUKFormat.cfm

<cfoutput>
&pound;#Trim(NumberFormat ATTRIBUTES.thenumber, &quot;999,999,999,999.00&quot;))#
</cfoutput>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top