Item | Value |
Header file | math.h |
Declaration | float ldexpf(float num, int exp); double ldexp(double num, int exp); long double ldexpl(long double num, int exp); |
Return | returns the value of num * 2^exp. |
#include <math.h> #include <stdio.h> int main(void) { printf("%f", ldexp(1,2)); return 0; }
4.000000
19.40.ldexp | ||||
19.40.1. | ldexp |