Status/Resolution/Reason: Closed/Withdrawn/Duplicate
Reporter/Name(from Bugbase): Dik Klop / Dik Klop (Dik Klop)
Created: 10/15/2014
Components: General Server
Versions: 11.0
Failure Type:
Found In Build/Fixed In Build: CF11_Final /
Priority/Frequency: Major / All users will encounter
Locale/System: English / Win 2008 Enterprise Svr 64-bit
Vote Count: 1
Duplicate ID: CF-3134331
Problem Description:
When you try to compare two strings with a numeric value that also contains a comma, the result is true even the values are totally different
Steps to Reproduce:
<cfset number1 = "2,0" />
<cfset number2 = "0,000002" />
<cfdump var="#(number1 eq number2)#" />
Actual Result:
True
Expected Result:
False
Any Workarounds:
Removing ',0' from the first value solves the problem, but is not a workable workaround
<cfset number1 = "2" />
<cfset number2 = "0,000002" />
<cfdump var="#(number1 eq number2)#" />
this one gives the correct result.
Even casting the values to Java strings don't solve the problem.
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3839552
External Customer Info:
External Company:
External Customer Name: Dik
External Customer Email:
External Test Config: Tested on several configurations:
Windows 2008 R2, CF 11.0.0
Mac OS X 10.9, CF 11.0.2
Windows 7, CF 11.0.0
Windows 8, CF 11.0.0
Attachments:
Comments: