JDK-5083000 : REGRESSION: ceil(...) and floor(...) wrong descriptions at java.lang.Math class
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.lang
  • Affected Version: 5.0
  • Priority: P3
  • Status: Closed
  • Resolution: Not an Issue
  • OS: windows_2000
  • CPU: x86
  • Submitted: 2004-08-05
  • Updated: 2004-08-05
  • Resolved: 2004-08-05
Related Reports
Relates :  
Description

Name: js151677			Date: 08/05/2004


FULL PRODUCT VERSION :


A DESCRIPTION OF THE PROBLEM :
floor(...) rounds down. Then, it returns the largest (closest to positive infinity) floating-point value that is not greater than the argument and is equal to a mathematical integer.

ceil(...) rounds up. Then, it returns the smallest (closest to negative infinity) floating-point value that is not less than the argument and is equal to a mathematical integer.



REPRODUCIBILITY :
This bug can be reproduced always.

Release Regression From : 1.4.2
The above release value was the last known release where this 
bug was known to work. Since then there has been a regression.

(Incident Review ID: 295782) 
======================================================================

Comments
EVALUATION The current descriptions public static double floor(double a) Returns the largest (closest to positive infinity) double value that is less than or equal to the argument and is equal to a mathematical integer. and public static double ceil(double a) Returns the smallest (closest to negative infinity) double value that is greater than or equal to the argument and is equal to a mathematical integer. are correct. ###@###.### 2004-08-05
05-08-2004