#define _GNU_SOURCE #include long double significandl(long double x) { return scalbnl(x, -ilogbl(x)); }