GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing www.geeksforgeeks.org — Python | math.floor() function - GeeksforGeeks Python | math.floor() functionLast Updated : 16 Feb, 2023 In Python, math module contains a number of mathematical operations, which can be performed with ease using the module. math.floor() function returns the largest integer not greater than x. If number is already integer, same number is returned. Syntax: math.floor(x) Parameter: x: This is a numeric expression. Returns: largest integer not greater than x. Time Complexity: O(1) Auxiliary Space: O(1) Code #1:
Output:
The floor of 33.7 is : 33 Code #2:
Output:
math.floor(-13.1) : -14 math.floor(101.96) : 101 Comment Explore |
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |