[C] 把数分为指数和尾数 →→→→→进入此内容的聊天室

来自 , 2020-06-16, 写在 C, 查看 151 次.
URL http://www.code666.cn/view/47810f95
  1. #include <math.h>
  2. #include <stdio.h>
  3.  
  4. int main(void)
  5. {
  6.    double fraction, integer;
  7.    double number = 100000.567;
  8.  
  9.    fraction = modf(number, &integer);
  10.    printf("The whole and fractional parts of %lf are %lf and %lf\n",
  11.           number, integer, fraction);
  12.    return 0;
  13. }
  14.  

回复 "把数分为指数和尾数"

这儿你可以回复上面这条便签

captcha