I can't comment on the function itself, but the language options is correct. Europe uses a comma in place of the decimal point in many cases.
<!----------------//------ andy matthews web developer certified advanced coldfusion programmer ICGLink, Inc. [EMAIL PROTECTED] 615.370.1530 x737 --------------//---------> -----Original Message----- From: Aidan Whitehall [mailto:[EMAIL PROTECTED] Sent: Monday, June 26, 2006 9:46 AM To: CF-Talk Subject: Validating data from users in multiple countries Our web site is going to have to be able to accept data entered in form fields from users in different locales; we're looking at "English (UK)" and "Spanish (Standard)" for starters. For English users, '.' will be the decimal point character. If Window's Regional and Language Options is to be believed, Spanish users will enter ','. I was starting to think that lsParseNumber() held the key. However, this: <cfset setLocale = "Spanish (Standard)"> <cfset fNumber = lsParseNumber("1200,15")> <cfset setLocale = "English (UK)"> <cfoutput>#fNumber#</cfoutput> outputs "120015" and not (as I'd anticipated) "1200.15". Does lsParseNumber() not work (Win CFMX 6.1) or does it work fine and have I got the wrong end of the stick? Thanks for any pointers. -- Aidan Whitehall ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:244777 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

