c – scalbn和ldexp之间有什么区别
作者:互联网
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)
标签:c-3,c,function,math,c99 来源: https://codeday.me/bug/20190903/1798142.html