blob: d91be7e408c6140742883ac54c58407e54376de1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
#include "math.h"
float fmodf(float dividend, float divisor) {
int quotient;
if (divisor == 0.0f) {
return 0.0f;
}
quotient = dividend / divisor;
return dividend - quotient * divisor;
}
|