C/math.h/fmod
Версия от 17:20, 25 мая 2010; (обсуждение)
fmod: returns the remainder of a/b
<source lang="cpp">
//Declaration: float fmodf(float a, float b);
double fmod(double a, double b); long double fmodl(long double a, long double b); #include <math.h> #include <stdio.h> int main(void) { printf("%1.1f", fmod(10.0, 3.0)); return 0; } /*1.0*/ </source>