Contact: aviboots(AT)netvision.net.il
40,758 questions
53,129 answers
573 users
#include <iostream> #include <cmath> using namespace std; int main() { int i; double f2 = frexp(12.34, &i); cout << "frexp(12.34, &i) = " << f2 << " * 2^" << i << endl; return 0; } /* run: frexp(12.34, &i) = 0.77125 * 2^4 */