Log in
Skip to main content
Skip to sidebar
Dashboards
Projects
Issues
Help
Jira Core help
Keyboard Shortcuts
About Jira
Jira Credits
Log In
Watched Subcomponents
JDK
JDK-1191335
Math.round fails for negative numbers
Log In
Closed
Export
null
XML
Word
Printable
Details
Type:
Bug
Resolution:
Fixed
Priority:
P3
Fix Version/s:
1.0
Affects Version/s:
1.0
Component/s:
core-libs
Labels:
math.round
negative
numbers
Subcomponent:
java.lang
Resolved In Build:
1.0alpha2
CPU:
sparc
OS:
solaris_2.4
Verification:
Not verified
Description
Apparently casting to int does a truncate towards zero which is
not the correct operation to use for rounding. Math.floor should
be used instead.
Attachments
Activity
People
Assignee:
Jim Graham
Reporter:
Jim Graham
Votes:
0
Vote for this issue
Watchers:
0
Start watching this issue
Dates
Created:
1995-02-07 23:00
Updated:
2012-03-22 13:51
Resolved:
1997-10-22 10:37
Imported:
15/Sep/12 10:20 PM
Indexed:
17/Jul/12 6:49 PM