A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://www.w3schools.com/python/ref_math_ldexp.asp below:

Website Navigation


Python math.ldexp() Method

Python math.ldexp() Method

❮ Math Methods

Example

Return value of x * (2**i):

#Import math Library

import math

#Return value of x * (2**i)

print(math.ldexp(9, 3))

print(math.ldexp(-5, 2))

print(math.ldexp(15, 2))

Try it Yourself » Definition and Usage

The math.ldexp() method returns  x * (2**i) of the given numbers x and i, which is the inverse of math.frexp().

Syntax Parameter Values Parameter Description x Required. A positive or negative number. If the value is not a number, it returns TypeError i Required. A positive or negative number. If the value is not a number, it returns TypeError Technical Details Return Value: The value of x * (2**i) Python Version: 2.6

❮ Math Methods

Track your progress - it's free!


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4