What will be the value returned by calling the function Math.ceil(-1.2)?
Answers
Answered by
1
Answer:
Math.ceil(-1.2) returns = -1.0
Explanation:
hope this was helpful
Answered by
0
Answer:
Parameters
x
A number.
Return value
The smallest integer greater than or equal to the given number.
Description
Because ceil() is a static method of Math, you always use it as Math.ceil(), rather than as a method of a Math object you created (Math is not a constructor).
Examples
Using Math.ceil()
The following example shows example usage of Math.ceil().
Math.ceil(.95); // 1
Math.ceil(4); // 4
Math.ceil(7.004); // 8
Math.ceil(-0.95); // -0
Math.ceil(-4); // -4
Math.ceil(-7.004); // -7
Explanation:
this is your answer
Similar questions
English,
4 months ago
English,
4 months ago
Accountancy,
8 months ago
Social Sciences,
8 months ago
Social Sciences,
11 months ago
Physics,
11 months ago