ilogb函数

Searching…

en.cppreference.com

ilogb, ilogbf, ilogbl - cppreference.com

May 23, 2024 · The value of the exponent returned by ilogb is always 1 less than the exponent retuned by frexp because of the different normalization requirements: for the exponent e returned by ilogb, |arg*r-e | is b...

www.cainiaojc.com

C++ ilogb () 函数使用方法及示例 - 菜鸟教程

ilogb ()参数 ilogb ()函数接受一个参数,它的ilogb是计算得到的。 ilogb ()返回值 ilogb ()函数使用FLT_RADIX作为对数的底数,返回| x |的对数的整数部分。 如果参数为0,则返回FP_LOGB0。 如果参数为NaN,则返回FP_LOGBNAN。 如果参数是无限的,则返回INT_MAX。

cppreference.cn

ilogb、ilogbf、ilogbl - cppreference.cn - C++参考手册

ilogb 返回的指数值总是比 frexp 返回的指数值小 1,因为归一化要求不同:对于 ilogb 返回的指数 e, |arg*r-e | 介于 1 和 r 之间(通常介于 1 和 2 之间),但对于 frexp 返回的指数 e, |arg*2-e | 介于 0.5 和 1 之间。 示例 运行此代码

learn.microsoft.com

ilogb、ilogbf、ilogbl2 | Microsoft Learn

在 C 程序中,除非使用 宏调用此函数,否则 ilogb 始终采用并返回 double。 如果使用 ilogb() 宏,则参数的类型将决定选择哪个版本的函数。 有关详细信息,请参阅 泛型类型数学。 调用此函数相当于调用等效 logb函数,然后将返回值转换为 int。

standards.wiki

ilogb函数 C语言 | 标准维基

ilogb函数 函数原型:int ilogb (double x); 该函数将参数x的指数提取为有符号的int类型值。 如果函数运算结果超出了int类型所能表示的范围,结果是未指定的,并且可能发生域错误或者范围错误(range error)。 函数将参数x的指数以有符号的int类型值返回。

www.studycpp.cn

ilogb, ilogbf, ilogbl

ilogb 所返回的指数值始终比 frexp 所返回的小 1,因为不同的正规化要求:对于 ilogb 返回的指数 e, |arg*r-e | 在 1 与 r 之间(典型地在 1 与 2 之间),但 frexp 返回的指数 e, |arg*2-e

cplusplus.com

ilogb - C++ Users

Value whose ilogb is returned. Return Value If x is normal, the base- FLT_RADIX logarithm of x. If x is subnormal, the value returned is the one corresponding to the normalized representation (negative exponent). If x...