Provided by:
manpages-fr_1.67.0-1_all 
NOM
frexp, frexpf, frexpl - Conversion de réel en fraction normalisée.
SYNOPSIS
#include <math.h>
double frexp (double x, int *exp);
float frexpf (float x, int *exp);
long double frexpl (long double x, int *exp);
DESCRIPTION
La fonction frexp() est utilisée pour scinder le nombre x en une
fraction normalisée et un exposant qui est stocké dans exp.
VALEUR RENVOYÉE
La fonction frexp() renvoie la fraction normalisée.
Si x est non nul, x est égale à la fraction renvoyée multiplié par
2^exp. La fraction est dans l’intervalle [1/2, 1[.
Si x est nul, la fraction normalisée vaut zéro et exp également.
EXEMPLE
#include <stdio.h>
#include <math.h>
#include <float.h>
int main () {
double d = 2560;
int e;
double f = frexp(d, &e);
printf("frexp(%g, &e) = %g: %g * %d^%d = %g\n",
d, f, f, FLT_RADIX, e, d);
return 0;
}
Ce programme affiche
frexp(2560, &e) = 0.625: 0.625 * 2^12 = 2560
CONFORMITÉ
SVID 3, POSIX, BSD 4.3, ISO 9899
VOIR AUSSI
ldexp(3), modf(3)
TRADUCTION
Christophe Blaess, 1996-2003.