相关文章推荐
大力的勺子
·
如何关闭数据库事件提示 | PingCode智库
·
3 月前
·
安静的饭盒
·
系统运维管理OOS服务条款_系统运维管理(O ...
·
3 月前
·
彷徨的酱牛肉
·
ApsaraDB for ...
·
1 年前
·
悲伤的电影票
·
Solved: ...
·
1 年前
·
酷酷的芹菜
·
LINQ In PHP: Query ...
·
1 年前
·
小百科
›
float_t, double_t - cppreference.com
sizeof
健壮的眼镜
3 月前
Common mathematical functions
Floating-point environment
(C99)
Pseudo-random number generation
Complex number arithmetic
(C99)
Type-generic math
(C99)
[edit]
Common mathematical functions
Types
div_t
ldiv_t
lldiv_t
imaxdiv_t
(C99)
(C99)
float_t
double_t
(C99)
(C99)
_Decimal32_t
_Decimal64_t
(C23)
(C23)
nearbyint
(C99)
rint
lrint
llrint
(C99)
(C99)
(C99)
fromfp
fromfpx
ufromfp
ufromfpx
(C23)
(C23)
(C23)
(C23)
Floating-point manipulation functions
ldexp
frexp
scalbn
scalbln
(C99)
(C99)
ilogb
llogb
(C99)
(C23)
logb
(C99)
nextafter
nexttoward
(C99)
(C99)
nextup
nextdown
(C23)
(C23)
copysign
(C99)
canonicalize
(C23)
Narrowing operations
fadd
(C23)
fsub
(C23)
fmul
(C23)
fdiv
(C23)
ffma
(C23)
fsqrt
(C23)
Quantum and quantum exponent functions
quantized
N
(C23)
samequantumd
N
(C23)
quantumd
N
(C23)
llquantexpd
N
(C23)
Decimal re-encoding functions
encodedecd
N
(C23)
decodedecd
N
(C23)
encodebind
N
(C23)
decodebind
N
(C23)
Total order and payload functions
totalorder
(C23)
getpayload
(C23)
setpayload
(C23)
setpayloadsig
(C23)
Classification
fpclassify
(C99)
iscanonical
(C23)
isfinite
(C99)
isinf
(C99)
isnan
(C99)
isnormal
(C99)
signbit
(C99)
issubnormal
(C23)
iszero
(C23)
isgreater
(C99)
isgreaterequal
(C99)
isless
(C99)
islessequal
(C99)
islessgreater
(C99)
isunordered
(C99)
issignaling
(C23)
iseqsig
(C23)
Macro constants
Special floating-point values
HUGE_VALF
HUGE_VAL
HUGE_VALL
HUGE_VALD
N
(C99)
(C99)
(C23)
INFINITY
DEC_INFINITY
(C99)
(C23)
NAN
DEC_NAN
(C99)
(C23)
Arguments and return values
FP_ILOGB0
FP_ILOGBNAN
(C99)
(C99)
FP_INT_UPWARD
FP_INT_DOWNWARD
FP_INT_TOWARDZERO
FP_INT_TONEARESTFROMZERO
FP_INT_TONEAREST
(C23)
(C23)
(C23)
(C23)
(C23)
FP_LLOGB0
FP_LLOGBNAN
(C23)
(C23)
FP_NORMAL
FP_SUBNORMAL
FP_ZERO
FP_INFINITE
FP_NAN
(C99)
(C99)
(C99)
(C99)
(C99)
Error handling
MATH_ERRNO
MATH_ERRNOEXCEPT
(C99)
(C99)
math_errhandling
(C99)
FP_FAST_FMAF
FP_FAST_FMA
(C99)
(C99)
FP_FAST_FADD
FP_FAST_FADDL
FP_FAST_DADDL
FP_FAST_D
M
ADDD
N
(C23)
(C23)
(C23)
(C23)
FP_FAST_FMUL
FP_FAST_FMULL
FP_FAST_DMULL
FP_FAST_D
M
MULD
N
(C23)
(C23)
(C23)
(C23)
FP_FAST_FFMA
FP_FAST_FFMAL
FP_FAST_DFMAL
FP_FAST_D
M
FMAD
N
(C23)
(C23)
(C23)
(C23)
FP_FAST_FMAL
FP_FAST_FMAD
N
(C99)
(C23)
FP_FAST_FSUB
FP_FAST_FSUBL
FP_FAST_DSUBL
FP_FAST_D
M
SUBD
N
(C23)
(C23)
(C23)
(C23)
FP_FAST_FDIV
FP_FAST_FDIVL
FP_FAST_DDIVL
FP_FAST_D
M
DIVD
N
(C23)
(C23)
(C23)
(C23)
FP_FAST_FSQRT
FP_FAST_FSQRTL
FP_FAST_DSQRTL
FP_FAST_D
M
SQRTD
N
(C23)
(C23)
(C23)
(C23)
[edit]
Defined in header
<math.h>
printf
(
"%d
\n
"
,
FLT_EVAL_METHOD
)
;
printf
(
"%zu %zu
\n
"
,
sizeof
(
float
)
,
sizeof
(
float_t
)
)
;
printf
(
"%zu %zu
\n
"
,
sizeof
(
double
)
,
sizeof
(
double_t
)
)
;
return
0
;
Possible output:
[
edit
]
References
C11 standard (ISO/IEC 9899:2011):
7.12 Mathematics <math.h> (p: 231)
C99 standard (ISO/IEC 9899:1999):
7.12 Mathematics <math.h> (p: 212)
Toolbox
What links here
Related changes
Upload file
Special pages
Printable version
Permanent link
Page information
In other languages
العربية
Česky
Deutsch
Español
Français
Italiano
日本語
한국어
Polski
Português
Русский
Türkçe
中文
This page was last modified on 28 October 2021, at 03:00.
Privacy policy
About cppreference.com
Disclaimers
推荐文章
大力的勺子
·
如何关闭数据库事件提示 | PingCode智库
3 月前
安静的饭盒
·
系统运维管理OOS服务条款_系统运维管理(OOS)-阿里云帮助中心
3 月前
彷徨的酱牛肉
·
ApsaraDB for ClickHouse: Distributed Real-Time Analytical Column Database Service - Alibaba Cloud
1 年前
悲伤的电影票
·
Solved: NoHttpResponseException: $IP failed to respond - SmartBear Community
1 年前
酷酷的芹菜
·
LINQ In PHP: Query arrays with a SQL-like syntax using LINQ - PHP Classes
1 年前