#define _GNU_SOURCE #include double significand(double x) { return scalbn(x, -ilogb(x)); }