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