Note that scalbn uses FLT_RADIX.

This is the reason that it is distinct from ldexp, although they amount to the same thing in the case of binary floating-point.
This commit is contained in:
Stephen Heumann 2021-11-21 14:40:45 -06:00
parent b2874b8bf6
commit 3e08ba39aa
1 changed files with 1 additions and 1 deletions

View File

@ -964,7 +964,7 @@ double scalbn(double x, int n);
float scalbnf(float x, int n);
long double scalbnl(long double x, int n);
These functions return x * 2^n, computed efficiently.
These functions return x * FLT_RADIX^n, computed efficiently. In ORCA/C, FLT_RADIX is 2.
#include <math.h>
double trunc(double x);