Math h C Tutorial

Item Value
Header filemath.h
Declarationfloat fmodf(float a, float b);double fmod(double a, double b);long double fmodl(long double a, long double b);
Returnreturns the remainder of a/b.

#include 
  #include 
  int main(void)
  {
    printf("%1.1f", fmod(10.0, 3.0));
    return 0;
  }
1.0