Visit Our UNIX and Linux User Community

Linux and UNIX Man Pages

Test Your Knowledge in Computers #6
Difficulty: Easy
Unix was first released more than 10 years before Windows.
True or False?
Linux & Unix Commands - Search Man Pages

frexp(3) [bsd man page]

FREXP(3)						     Library Functions Manual							  FREXP(3)

NAME
frexp, ldexp, modf - split into mantissa and exponent SYNOPSIS
double frexp(value, eptr) double value; int *eptr; double ldexp(value, exp) double value; double modf(value, iptr) double value, *iptr; DESCRIPTION
Frexp returns the mantissa of a double value as a double quantity, x, of magnitude less than 1 and stores an integer n such that value = x*2n indirectly through eptr. Ldexp returns the quantity value*2exp. Modf returns the positive fractional part of value and stores the integer part indirectly through iptr. 7th Edition May 15, 1985 FREXP(3)

Check Out this Related Man Page

modf(3M)						  Mathematical Library Functions						  modf(3M)

NAME
modf, modff, modfl - decompose floating-point number SYNOPSIS
cc [ flag... ] file... -lm [ library... ] #include <math.h> double modf(double x, double *iptr); float modff(float x, float *iptr); long double modfl(long double x, long double *iptr); DESCRIPTION
These functions break the argument x into integral and fractional parts, each of which has the same sign as the argument. It stores the integral part as a double for the modf() function, a float for the modff() function, or a long double for themodfl() function in the object pointed to by iptr. RETURN VALUES
Upon successful completion, these functions return the signed fractional part of x. If x is NaN, a NaN is returned and *iptr is set to NaN. If x is +-Inf, +-0 is returned and *iptr is set to +-Inf. ERRORS
No errors are defined. USAGE
These functions compute the function result and *iptr such that: a = modf(x, &iptr) ; x == a+*iptr ; ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Interface Stability |Standard | +-----------------------------+-----------------------------+ |MT-Level |MT-Safe | +-----------------------------+-----------------------------+ SEE ALSO
frexp(3M), isnan(3M), ldexp(3M), attributes(5), standards(5) SunOS 5.10 16 Aug 2004 modf(3M)

Featured Tech Videos