mirror of
https://github.com/zeldaret/mm.git
synced 2026-06-20 15:41:10 -04:00
13 lines
217 B
C
13 lines
217 B
C
#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;
|
|
}
|