std::frexp
来自cppreference.com
|
|
该页由英文版wiki使用Google Translate机器翻译而来。
该翻译可能存在错误或用词不当。鼠标停留在文本上可以看到原版本。你可以帮助我们修正错误或改进翻译。参见说明请点击这里. |
| 在头文件 <cmath> 中定义
|
||
| float frexp( float arg, int* exp ); |
||
| double frexp( double arg, int* exp ); |
||
| long double frexp( long double arg, int* exp ); |
||
| double frexp( Integral arg, int* exp ); |
(C++11 起) | |
分解浮点值尾数和指数.
原文:
Decomposes given floating point value to significand and exponent.
[编辑] 参数
| arg | - | 浮点值
|
| exp | - | 为整数值的指针存储的指数
原文: pointer to integer value to store the exponent to |
[编辑] 返回值
有效位
[0.5; 1)的范围内的给定的浮点数。该指数是把整数值指出,exp.原文:
significand of the given floating point number in the range of
[0.5; 1). The exponent is put into integer value pointed to by exp.[编辑] 另请参阅
| 2次方乘以一个数 原文: multiplies a number by 2 raised to a power (函数) | |
| (C++11) |
提取指数的数量 (函数) |
| (C++11) |
提取指数的数量 (函数) |
| 分解一个数字的整数部分和小数部分 原文: decomposes a number into integer and fractional parts (函数) | |