Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ ldexp(3C) — A/UX 2.0

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

exp(3M)




frexp(3C) frexp(3C)
NAME frexp, ldexp, modf - manipulate parts of floating-point numbers SYNOPSIS double frexp(value, eptr) double value; int *eptr; double ldexp(value, exp) double value; int exp; double modf(value, iptr) double value, *iptr; DESCRIPTION Every nonzero number can be written uniquely as x* pow(2,n), where the ``mantissa'' (fraction) x is in the range 0.5 < |x| < 1.0, and the ``exponent'' n is an integer. frexp re- turns the mantissa of a double value, and stores the ex- ponent indirectly in the location pointed to by eptr. If value is zero, both results returned by frexp are zero. ldexp returns the quantity value* pow(2,exp). modf returns the signed fractional part of value and stores the integral part indirectly in the location pointed to by iptr. ERRORS If ldexp would cause overflow, +- HUGE is returned (accord- ing to the sign of value), and errno is set to ERANGE. If ldexp would cause underflow, zero is returned and errno is set to ERRANGE. SEE ALSO exp(3M). April, 1990 1

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026