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 | ldexp() function - GeeksforGeeks Python | ldexp() functionLast Updated : 14 Feb, 2023 ldexp() function is one of the Standard math library function in Python, which returns x * (2**i). This is also called as inverse of Python frexp() function.
For example, if x = 3 and i = 4 then, Math.ldexp(3, 4) = 3*16 = 48. Code #1:
Output: 72.0 -20.0 14.0 -54.40 Code #2:
Output: 72.0 -27.2 16.0 67.20 Code #3: If the X value or i value argument is not a number, ldexp() function will return TypeError.
Output: TypeError: a float is required TypeError: a float is required 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. |