add significand[fl] math functions

This commit is contained in:
Rich Felker
2012-08-13 14:51:43 -04:00
parent 0c42beb5f9
commit 2242bf616b
4 changed files with 25 additions and 0 deletions

7
src/math/significand.c Normal file
View File

@ -0,0 +1,7 @@
#define _GNU_SOURCE
#include <math.h>
double significand(double x)
{
return scalbn(x, -ilogb(x));
}