#include<stdio.h>
#include<math.h>
int main () {
double x, fractpart, intpart;
x = 8.123456;
fractpart = modf(x, &intpart);
printf("Integral part = %lf/n", intpart);
printf("Fraction Part = %lf /n", fractpart);
return(0);
}
原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/265197.html