Math.ceil(-2.73)
Mtb / 1
Answers
Answered by
5
Answer:
Math.ceil(-2.73)
= -1.0
________
Explanation:
- Math.ceil(-2.73) returns the rounded value upto next higher integer. So here -1.0 >-2.73 so answer is -1.0
- Math.ceil() always returns double data type value so the correct output will be -1.0 not 1
_______
Learn more about Maths Functions:-
- Math.max() is used to find the maximum value between 2 numbers. SYNTAX:- Math.max(a,b);
- Math.min() returns the minimum value between two numbers. SYNTAX:- Math.min(x,y);
- Math.abs() returns absolute value of the given number. SYNTAX:- Math.abs(a);
- Math.ceil() returns rounded value upto nearest higher integer. SYNTAX:- Math.ceil(x);
- Math.floor() returns rounded value upto nearest lower integer. SYNTAX;- Math.floor(x);
- Math.round() returns the rounded value of the number upto nearest integer. SYNTAX:- Math.round(x);
- Math.cbrt() returns cube root of a number. SYNTAX:- Math.cbrt(x);
- Math.sqrt() returns square root of a positive real number. SYNTAX:- Math.sqrt(x);
Similar questions