cosmopolitan/libc/math/significandf.c

8 lines
113 B
C

#define _GNU_SOURCE
#include "libc/math/math.h"
float significandf(float x)
{
return scalbnf(x, -ilogbf(x));
}