KnowledgeBoat Logo
|

Computer Science

What value will be returned, if x = math.floor(-24.6) ?

  1. 24.6
  2. -24
  3. -25
  4. -24.6

Python Modules

1 Like

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

1 Like


Related Questions