Duplicate :
|
Name: skT88420 Date: 06/22/99 Math.ceil(-2.5) returns -3.0, which is less than -2.5. Your method description states that the return value "is not less than the argument". You need to clarify behavior for negative numbers. Same thing for Math.floor(). ceil public static double ceil(double a) Returns the smallest (closest to negative infinity) double value that is not less than the argument and is equal to a mathematical integer. Parameters: a - a double value. Returns: the smallest (closest to negative infinity) double value that is not less than the argument and is equal to a mathematical integer. (Review ID: 84673) ======================================================================