double frexp(double dX, int* ipExponent);
float frexp(float, int*); double frexp(double, int*); long double frexp(long double, int*);
float frexpf(float, int*); long double frexpl(long double, int*);
* Note: Since C does not allow function overloading, these other versions of this function exist.
Domain (-∞, ∞) Range (-∞, ∞) X Integers Periodicity None Symmetry None Asymptotes None |
#include <iostream> #include <cmath> int main() { using namespace std; double dX = 1.2; int iExponent; cout << "x = " << dX << " Mantissa = " << frexp(dX, &iExponent); cout << " Exponent = " << iExponent << endl; dX = 6.0; cout << "x = " << dX << " Mantissa = " << frexp(dX, &iExponent); cout << " Exponent = " << iExponent << endl; return 0; }
© 20072024 XoaX.net LLC. All rights reserved.