Status/Resolution/Reason: Closed/Fixed/
Reporter/Name(from Bugbase): Scott Brady / Scott Brady (Scott Brady)
Created: 12/04/2013
Components: Documentation
Versions: 10.0
Failure Type: Incorrect w/Workaround
Found In Build/Fixed In Build: Final /
Priority/Frequency: Major / All users will encounter
Locale/System: English / Mac 10.7 64-bit
Vote Count: 0
Problem Description:
The documentation for isValid() implies that "float" and "numeric" types are interchangeable (by being listed together). However, they yield different results when dealing with "formatted" numbers (e.g., "1,000.00")
Steps to Reproduce:
Output the following:
#isValid("numeric","1,000.00")#
#isValid("float","1,000.00")#
Actual Result:
isValid("numeric","1,000.00") returns false
isValid("float","1,000.00") returns true
Expected Result:
The two isValid() calls should return the same result, either true or false (probably false, because "1,000.00" is not treated like a number in other instances, such as isNumeric())
Any Workarounds:
Always use "numeric" for the isValid() type, assuming you want "1,000.00" to be considered non-numeric.
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3679387
Deployment Phase: Release Candidate
External Customer Info:
External Company:
External Customer Name: dsbrady_98
External Customer Email:
External Test Config: My Hardware and Environment details:
Mac OS X (10.9)
2009 MacBook Pro
ColdFusion 10 Developer Edition
Attachments:
Comments: