The C99 standard defines ldexp(double a, int exp)
as a × 2 exp and scalbn(double a, int exp)
as a × FLT_RADIX exp
What's the difference between the two if I'm using IEEE-754 arithmetic (ie FLT_RADIX == 2)?
Appendix F:
F.9.3.6 The ldexp functions [#1] On a binary system, ldexp(x, exp) is equivalent to scalbn(x, exp)
FLT_RADIX == 2时没有区别。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.