C语言库frexp()函数

#include stdio.h#include math.hint main () {double x = 1024, fraction;int e;fraction = frexp(x, e);

编程学习网为您整理以下代码实例,主要实现: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()函数

基础教程推荐