frexp 中文
Python math.frexp()方法 (Python math.frexp() method)
math.frexp() method is a library method of math module, it is used to get the pair of mantissa and exponent of the given number, it accepts a number (integer or float) and returns a tuple of mantissa and exponent of the given number, where mantissa is a float value and exponent is an integer value.
math.frexp()方法是数学模块的库方法,用于获取给定数字的尾数和指数对,它接受一个数字(整数或浮点数)并返回给定的尾数和指数的元组数字,其中尾数是浮点值,指数是整数值。
Where, the combination of mantissa and exponent should is like, number = mantissa*2**exponent.
其中,尾数和指数的组合应为: number =尾数* 2 ** exponent 。
Note: If anything is passed except the number, the method returns a type error,