Mega Code Archive
Categories
/
C
/
Code Snippets
Return remainder of floating point division fmod
#include
#include
int main () { printf ("fmod of 3.8 / 2 is %lf\n", fmod (3.8,2) ); printf ("fmod of 18.5 / 7.2 is %lf\n", fmod (18.5,7.2) ); return 0; }