summaryrefslogblamecommitdiff
path: root/src/math/significand.c
blob: 40d9aa9f4968de1be2b6101a89b5c6e6de8d12e5 (plain) (tree)
1
2
3
4
5
6
7






                                    
#define _GNU_SOURCE
#include <math.h>

double significand(double x)
{
	return scalbn(x, -ilogb(x));
}