Status/Resolution/Reason: Closed/Withdrawn/NotABug
Reporter/Name(from Bugbase): M B / M B (bean5c)
Created: 09/11/2014
Components: Language
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 / Win All
Vote Count: 0
Problem Description:
Round() sometimes return incorrect result. We have only proven that this is the case when an expression is passed in that that ends in .5 (but not all of them do this). It might happen at other times as well.
Steps to Reproduce:
Call: Round(575/1000*100)
Call: Round(23/40*100)
Actual Result:
57
Expected Result:
58
Any Workarounds:
Two workarounds exist. The first is to cast the result of the expression as a float:
Round(javaCast("float", 23/40*100")
The second workaround is to pass it as a string:
Round("" & 23/40*100")
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3822899
External Customer Info:
External Company:
External Customer Name: bean5c
External Customer Email:
External Test Config: My Hardware and Environment details:
Attachments:
Comments: