Computer Science
What value will be returned, if x = math.floor(-24.6) ?
- 24.6
- -24
- -25
- -24.6
Python Modules
3 Likes
Answer
-25
Reason — The math.floor() function returns the largest integer less than or equal to the given number. For math.floor(-24.6), the result is -25, which is the largest integer less than -24.6.
Answered By
3 Likes
Related Questions
What is the value of x, if x = math.factorial(0) ?
- 1
- 0
- Error
- None of these
What is the value of x, if x = math.sqrt(25.0) ?
- (5, -5)
- 5
- 5.0
- (5.0, -5.0)
What value will be displayed on executing the following arithmetic expression?
x = math.pow (0,-4)
- 1
- 16
- DomainError
- None of these
What output will be displayed after executing the following code?
statistics.median([11, 22, 33, 44, 55, 66])
- 28.5
- 38.5
- 5.5
- 6.5