ldexp: returns the value of num * 2^exp : ldexp « math.h « C / ANSI-C






ldexp: returns the value of num * 2^exp


    

//Header file: #include <math.h>  
//Declaration: float ldexpf(float num, int exp); 
               double ldexp(double num, int exp); 
               long double ldexpl(long double num, int exp);  
 

    
  

  #include <math.h>
  #include <stdio.h>

  int main(void)
  {
    printf("%f", ldexp(1,2));

    return 0;
  }

         
/*
4.000000*/ 

           
       








Related examples in the same category