fmod
Da cppreference.com
< cpp | numeric/math
Sintaxe:
#include <cmath> double fmod( double x, double y );
A função fmod() devolve o resto de x/y.
O C++ também fornece as seguintes formas sobre-carregadas (overload):
#include <cmath> float fmod( float x, float y ); // igual a fmodf() em C99 long double fmod( long double x, long double y ); // igual a fmodl() em C99