It's probably picking up the locale information from the JVM. Try using lsCurrencyFormat() and lsNumberFormat() instead of dollarFormat() and decimalFormat().
That force it to use the US locale settings. Spike >-----Original Message----- >From: >[EMAIL PROTECTED] >[mailto:[EMAIL PROTECTED] >o.uk] On Behalf Of Allan Cliff - CFUG Spain >Sent: Tuesday, April 20, 2004 2:58 AM >To: CF - List >Subject: [ cf-dev ] Decimal / Dollar / Number Format > >The Server has UK region settings with decimal separator as . >and thousand separator as , > >This code don't work 8-(( , it gives me >----------------------------------------------------------- >Spanish (Standard) > >English (US) - 3.200,00 - $3.200,00 > >---------------------------------------------------------- > ><CFOUTPUT>#getLocale()#<P></CFOUTPUT> > ><CFSET SetLocale("English (US)")> > ><CFSET list2 = 3200> > ><CFOUTPUT>#getLocale()# - #DecimalFormat(list2)# - >#DollarFormat(list2)#</CFOUTPUT><CFABORT> > > >-------------------------------------------------------------- > >Any ideas? > >Allan > -- These lists are syncronised with the CFDeveloper forum at http://forum.cfdeveloper.co.uk/ Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/ CFDeveloper Sponsors and contributors:- *Hosting and support provided by CFMXhosting.co.uk* :: *ActivePDF provided by activepdf.com* *Forums provided by fusetalk.com* :: *ProWorkFlow provided by proworkflow.com* *Tutorials provided by helmguru.com* :: *Lists hosted by gradwell.com* To unsubscribe, e-mail: [EMAIL PROTECTED]
