#include <math.h> #include <stdio.h> int main(void) { double i; double f; f = modf(10.123, &i); printf("%f %f",i , f); }
10.000000 0.123000