#define _GNU_SOURCE #include double significand(double x) { return scalbn(x, -ilogb(x)); } #ifdef TEST int main(void) { return 0; } #endif