up | Inhaltsverzeichniss | Kommentar

Manual page for FREXP(3)

frexp, ldexp, modf - split into mantissa and exponent

SYNOPSIS

#include <math.h>

double frexp(double value, int *eptr);

double ldexp(double value, int exp);

double modf(double value, double *iptr);

DESCRIPTION

frexp returns a mantissa x and (indirectly through eptr) an exponent n such that x multiplied by 2 raised to n is equal to value:

value = x*2^n

ldexp returns the quantity value*2^exp.

modf returns the positive fractional part of value and stores the integer part indirectly through iptr.


index | Inhaltsverzeichniss | Kommentar

Created by unroff & hp-tools. © somebody (See intro for details). All Rights Reserved. Last modified 11/5/97