aboutsummaryrefslogtreecommitdiff
path: root/src/math/significand.c
blob: 5d632852f5c7e9eacbbe95b4d77d6dd5ccc0f90c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#define _GNU_SOURCE
#include <math.h>

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


#ifdef TEST
int
main(void) {
	return 0;
}
#endif