Status/Resolution/Reason: Closed/Withdrawn/NotABug
Reporter/Name(from Bugbase): Julien de Cardaillac / Julien de Cardaillac (Julien de Cardaillac)
Created: 03/20/2015
Components: Language
Versions: 10.0
Failure Type:
Found In Build/Fixed In Build: Final /
Priority/Frequency: Major / Most users will encounter
Locale/System: English / Win All
Vote Count: 0
Problem Description:
When we do int() after a calculation result the value is calculted on the approx.
Steps to Reproduce:
<cfoutput>
<cfset nb = 3.8-3.0 />
#nb#<br/>
<cfset nb = nb*10 />
#NumberFormat(nb,"0.00000000000000000000000000000000000000000000000000000000000000")#<br/>
#Int(nb)#<br/>
#Int(8.0)#
</cfoutput>
Actual Result:
0.8
7.99999999999999800000000000000000000000000000000000000000000000
7
8
Expected Result:
0.8
8.00000000000000000000000000000000000000000000000000000000000000
8
8
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3956970
External Customer Info:
External Company:
External Customer Name: Julien
External Customer Email:
Attachments:
Comments: