Or login with:
#include <math.h>| double | ldexp (double x, int n) |
| long | ldexpl (long double x, int n) |
| float | ldexpf (float x, int n) |
#include <stdio.h> #include <math.h> int main(void) { double x = 3.14, result = ldexp(x, 10); printf("%.2lf * 2^10 = %.2lf\n", x, result); return 0; }
3.14 * 2^10 = 3215.36
You must login to leave a messge