cosmopolitan/libc/math/significand.c

8 lines
112 B
C

#define _GNU_SOURCE
#include "libc/math/math.h"
double significand(double x)
{
return scalbn(x, -ilogb(x));
}