3 Replies Latest reply on Nov 7, 2008 11:53 AM by gr8white

    isNumeric() returns true for "NaN"

    gr8white Level 1
      According to the docs isNumeric(arg) returns "True, if arg can be converted to a number; otherwise False."

      However (in CFMX7)
      <cfset temp = "NaN">
      <cfoutput>#isNumeric(temp)#</cfoutput> <!---outputs "YES"--->
      <cfset temp = temp + 1> <!---generates error The value "NaN" cannot be converted to a number--->

      So obviously something is wrong.