scalbn: returns val * FLT_RADIX^exp : scalbn « math.h « C / ANSI-C






scalbn: returns val * FLT_RADIX^exp


    

//Declaration: float scalbnf(float val, int exp); 
               double scalbn(double val, int exp); 
               long double scalbnl(long double val, int exp);  



// The macro FLT_RADIX is defined in <float.h>, and its value 
is the radix of exponent representation.
  

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

  int main(void)
  {

    printf("%f\n", scalbn (11,2));

    return 0;
  }

         
/*
44.000000
*/         

           
       








Related examples in the same category