summaryrefslogtreecommitdiff
path: root/src/math/significandf.c
blob: 8a697e1aa21507460c6a62bf20b825e2419834e3 (plain)
1
2
3
4
5
6
7
#define _GNU_SOURCE
#include <math.h>

float significandf(float x)
{
	return scalbnf(x, -ilogbf(x));
}