Status/Resolution/Reason: Closed/Withdrawn/
Reporter/Name(from Bugbase): Paul Klein / Paul Klein (Paul@Boeing)
Created: 06/28/2013
Components: Language
Versions: 9.0.1
Failure Type:
Found In Build/Fixed In Build: 9.0.1 /
Priority/Frequency: Major / Most users will encounter
Locale/System: English / Windows 7
Vote Count: 0
Problem Description:
Found that when using a variable containing a decimal number and a literal multiplier, the mod (or %) operator returns the incorrect results.
Steps to Reproduce:
<cfset theValue = 1.15>
<cfoutput>#((theValue * 100) % 5)#</cfoutput>
Actual Result: 4
Expected Result: 0
Any Workarounds: Multiply by 1000 and mod by 50 produces correct results.
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3587263
Deployment Phase: Release Candidate
External Customer Info:
External Company:
External Customer Name: Paul@Boeing
External Customer Email:
External Test Config: 9.0.1 Developer Edition
Attachments:
- June 29, 2013 00:00:00: 1_modBug.cfm
Comments: