Uploaded image for project: 'Lucee Development'
  1. LDEV-1419

Comparison of numbers with decimal places fail when they are different underlying data types

    Details

    • Type: Bug
    • Status: Deployed
    • Priority: New
    • Resolution: Fixed
    • Affects Version/s: 5.2.2.66
    • Fix Version/s: 5.2.3.10
    • Labels:
    • Environment:

      Windows Server 2012 and Windows 10

    • Sprint:
      July 2017 Sprint

      Description

      <cfset a = 12345678.90>
      <cfset b = "12345678.90">
      <cfset c = false>

      <cfif a eq b>
      <cfset c = true>
      </cfif>

      <cfoutput>#c#</cfoutput>

      in ACF c is true, in Lucee it is false (and railo 4.5 too for that matter)

      <cfset a = 1234567890>
      <cfset b = "1234567890">
      <cfset c = false>

      <cfif a eq b>
      <cfset c = true>
      </cfif>

      <cfoutput>#c#</cfoutput>

      in ACF and Lucee c is true

        Attachments

          Activity

            People

            • Assignee:
              michaeloffner Michael Offner
              Reporter:
              elliot.russo Elliot
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: