Computer Science
What is the output of math.ceil(4.4) ?
- 5
- 4
- 4.0
- 5.0
Python Modules
2 Likes
Answer
5
Reason — The math.ceil() function returns the smallest integer greater than or equal to the given number. For math.ceil(4.4), it returns 5, which is the smallest integer greater than 4.4.
Answered By
1 Like
Related Questions
The mean() method calculates the arithmetic mean of the numbers in a list.
Each time we use the randint() function, it produces different results.
What will be the output on screen after executing: print(math.fabs(-6.4)) ?
- -6.4
- 6.4
- 4
- 6
If a, b, c = 3, 4, 1 then what will be the value of math.sqrt(b)*a-c?
- 5.0
- 5
- 2
- 4.0