Introducing Radical.sh

Forget Code launches a powerful code generator for building API's

modf - Seperate Round Value and fractorial Part in C

#include <math.h>
#include <stdio.h>

int main(void)
{
     double i;
     double f;

     f = modf(5.023, &i);
     printf("%f %f",i , f);
}

Output : 5.0000 0.023