← 返回列表

C库函数 frexp()

C库函数 frexp() #include <stdio.h> #include <math.h> int main () { double x = 1024, fraction; int e; fraction = frexp(x, &e); printf("x = %.2lf = %.2lf * 2^%d\n", x, fraction, e); return(0); }

C库函数 frexp()

#include <stdio.h>

#include <math.h>



int main () {

   double x = 1024, fraction;

   int e;



   fraction = frexp(x, &e);

   printf("x = %.2lf = %.2lf * 2^%d\n", x, fraction, e);



   return(0);

}

打开资源 ↗

交流与评论