Or login with:
#include <math.h>| double | fmod (double x, double y) |
| long | fmodl (long double x, long double y) |
| float | fmodf (float x, float y) |
#include <stdio.h> #include <math.h> int main(void) { double x = 2*3.1415926 + 0.14527, y = 3.1415926; printf("fmod(x, y) = %.5lf\n", fmod(x, y)); return 0; }
fmod(x, y) = 0.14527
You must login to leave a messge