C99标准将ldexp(double a,int exp)定义为×2exp,将scalbn(double a,int exp)定义为×FLT_RADIXexp
如果我使用IEEE-754算法(即FLT_RADIX == 2),两者之间有什么区别?
解决方法:
附录F:
F.9.3.6 The ldexp functions [#1] On a binary system, ldexp(x, exp) is equivalent to scalbn(x, exp)
2024-03-12 10:18:50
C99标准将ldexp(double a,int exp)定义为×2exp,将scalbn(double a,int exp)定义为×FLT_RADIXexp
如果我使用IEEE-754算法(即FLT_RADIX == 2),两者之间有什么区别?
解决方法:
附录F:
F.9.3.6 The ldexp functions [#1] On a binary system, ldexp(x, exp) is equivalent to scalbn(x, exp)