Or login with:
#include <math.h>| double | frexp (double value, int *exp) |
| long | frexpl (long double value, int *exp) |
| float | frexpf (float value, int *exp) |
#include <stdio.h> #include <math.h> int main(void) { double x = 1024, fraction; int e; fraction = frexp(x, &e); printf("x = %.2lf = %.2lf * 2^%d\n", x, fraction, e); return 0; }
x = 1024.00 = 0.50 * 2^11
You must login to leave a messge