ilogb

来自cppreference.com
< c‎ | numeric‎ | math

 
 
 
常见的数学函数
功能
原文:
Functions
这段文字是通过 Google Translate 自动翻译生成的。
您可以帮助我们检查、纠正翻译中的错误。详情请点击这里
基本操作
原文:
Basic operations
这段文字是通过 Google Translate 自动翻译生成的。
您可以帮助我们检查、纠正翻译中的错误。详情请点击这里
remainder(C99)
remquo(C99)
fma(C99)
fmax(C99)
fmin(C99)
fdim(C99)
nan
nanf
nanl
(C99)
(C99)
(C99)
指数函数
原文:
Exponential functions
这段文字是通过 Google Translate 自动翻译生成的。
您可以帮助我们检查、纠正翻译中的错误。详情请点击这里
exp
exp2(C99)
expm1(C99)
log
log10
log1p(C99)
log2(C99)
电源的功能
原文:
Power functions
这段文字是通过 Google Translate 自动翻译生成的。
您可以帮助我们检查、纠正翻译中的错误。详情请点击这里
sqrt
cbrt(C99)
hypot(C99)
pow
三角函数和双曲功能
原文:
Trigonometric and hyperbolic functions
这段文字是通过 Google Translate 自动翻译生成的。
您可以帮助我们检查、纠正翻译中的错误。详情请点击这里
sinh
cosh
tanh
asinh(C99)
acosh(C99)
atanh(C99)
错误和伽玛功能
原文:
Error and gamma functions
这段文字是通过 Google Translate 自动翻译生成的。
您可以帮助我们检查、纠正翻译中的错误。详情请点击这里
erf(C99)
erfc(C99)
lgamma(C99)
tgamma(C99)
最接近的整数,浮点运算
原文:
Nearest integer floating point operations
这段文字是通过 Google Translate 自动翻译生成的。
您可以帮助我们检查、纠正翻译中的错误。详情请点击这里
ceil
floor
round
lround
llround
(C99)
(C99)
(C99)
trunc(C99)
nearbyint(C99)
rint
lrint
llrint
(C99)
(C99)
(C99)
浮点操作功能
原文:
Floating point manipulation functions
这段文字是通过 Google Translate 自动翻译生成的。
您可以帮助我们检查、纠正翻译中的错误。详情请点击这里
ldexp
scalbn
scalbln
(C99)
(C99)
ilogb(C99)
logb(C99)
frexp
modf
nextafter
nexttoward
(C99)
(C99)
copysign(C99)
分类
原文:
Classification
这段文字是通过 Google Translate 自动翻译生成的。
您可以帮助我们检查、纠正翻译中的错误。详情请点击这里
fpclassify(C99)
isfinite(C99)
isinf(C99)
isnan(C99)
isnormal(C99)
signbit(C99)
宏常量
原文:
Macro constants
这段文字是通过 Google Translate 自动翻译生成的。
您可以帮助我们检查、纠正翻译中的错误。详情请点击这里
HUGE_VALF
HUGE_VAL
HUGE_VALL
(C99)

(C99)
FP_NORMAL
FP_SUBNORMAL
FP_ZERO
FP_INFINITE
FP_NAN
(C99)
(C99)
(C99)
(C99)
(C99)
 
在头文件 <math.h> 中定义
int ilogbf( float arg );
int ilogb( double arg );
int ilogbl( long double arg );
#define FP_ILOGB0 /*implementation-defined*/
#define FP_ILOGBNAN /*implementation-defined*/
提取的指数值从浮点参数arg,并有符号整数的形式返回。正式,其结果是,作为一个符号的积分值的整数部分log
r
|arg|
非零参数,其中rFLT_RADIX.
原文:
Extracts the value of the exponent from the floating-point argument arg, and returns it as a signed integer value. Formally, the result is the integral part of log
r
|arg|
as a signed integral value, for non-zero arg, where r is FLT_RADIX.
这段文字是通过 Google Translate 自动翻译生成的。
您可以帮助我们检查、纠正翻译中的错误。详情请点击这里

目录

[编辑] 参数

arg -
浮点值
原文:
floating point value
这段文字是通过 Google Translate 自动翻译生成的。
您可以帮助我们检查、纠正翻译中的错误。详情请点击这里

[编辑] 返回值

转换为整数,浮点指数.
原文:
The floating-point exponent, cast to integer.
这段文字是通过 Google Translate 自动翻译生成的。
您可以帮助我们检查、纠正翻译中的错误。详情请点击这里
arg是零​​域或范围可能会发生错误,FP_ILOGB0在这种情况下,返回.
原文:
Domain or range error may occur if arg is zero, FP_ILOGB0 is returned in that case.
这段文字是通过 Google Translate 自动翻译生成的。
您可以帮助我们检查、纠正翻译中的错误。详情请点击这里
arg是无限的域或范围可能会发生错误,MAX_INT在这种情况下,返回.
原文:
Domain or range error may occur if arg is infinite, MAX_INT is returned in that case.
这段文字是通过 Google Translate 自动翻译生成的。
您可以帮助我们检查、纠正翻译中的错误。详情请点击这里
arg为NaN,域或范围可能会发生错误,FP_ILOGBNAN在这种情况下,返回.
原文:
Domain or range error may occur if arg is NaN, FP_ILOGBNAN is returned in that case.
这段文字是通过 Google Translate 自动翻译生成的。
您可以帮助我们检查、纠正翻译中的错误。详情请点击这里
如果结果不能表示为int,结果是不确定的。
原文:
If the result cannot be represented as int, the result is undefined.
这段文字是通过 Google Translate 自动翻译生成的。
您可以帮助我们检查、纠正翻译中的错误。详情请点击这里

[编辑] 注释

指数的值返回ilogb始终是1小于由frexp因为不同的正常化要求重新调谐指数:经由e指数ilogb|arg*r-e
|
是介于1和r(通常之间12),但对于指数e返回frexp|arg*2-e
|
之间0.51.
原文:
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 between 1 and r (typically between 1 and 2), but for the exponent e returned by frexp, |arg*2-e
|
is between 0.5 and 1.
这段文字是通过 Google Translate 自动翻译生成的。
您可以帮助我们检查、纠正翻译中的错误。详情请点击这里

[编辑] 示例

[编辑] 另请参阅

分解一个数字,位数和电源2
原文:
decomposes a number into significand and a power of 2
这段文字是通过 Google Translate 自动翻译生成的。
您可以帮助我们检查、纠正翻译中的错误。详情请点击这里

(函数) [edit]
(C99)
提取指数的数量
原文:
extracts exponent of the number
这段文字是通过 Google Translate 自动翻译生成的。
您可以帮助我们检查、纠正翻译中的错误。详情请点击这里

(函数) [edit]
(C99)
(C99)
FLT_RADIX次方乘以一个数
原文:
multiplies a number by FLT_RADIX raised to a power
这段文字是通过 Google Translate 自动翻译生成的。
您可以帮助我们检查、纠正翻译中的错误。详情请点击这里

(函数) [edit]