Fmod Function
It is used for getting the remainder of division of two numbers .
Syntax:
float fmodf(float a, float b); double fmod(double a, double b); long double fmodl(long double a, long double b);
Example:
#include <math.h> #include <stdio.h> int main() { printf("%1.4f", fmod(10.6, 3.2)); printf("%1.4f", fmod(10.6, 3.2234)); return 0; }Back