what is use of Math.cell()? write one example
Answers
Answered by
1
Answer:
The Math.ceil() function always rounds a number up to the next largest integer.
Example:
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
Answered by
4
Correct question :-
What is math.ceil()? write one example.
Explanation :-
In python math.ceil() is an inbuilt function of math module which returns the ceiling value of input number. Ceiling value basically refers to the round of to the greater nearest integer.
For example,
>>> math.ceil(7.5)
8
>>> math.ceil(5.1)
6
>>> math.ceil(9.003)
10
You have to import math module before using it.
Similar questions