ldexp : ldexp « math.h « C Tutorial






ItemValue
Header filemath.h
Declarationfloat ldexpf(float num, int exp);
double ldexp(double num, int exp);
long double ldexpl(long double num, int exp);
Returnreturns 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