1
0
mirror of https://github.com/cc65/cc65.git synced 2024-06-01 13:41:34 +00:00
cc65/libsrc/float/softmath/softmath-fmodf.c

10 lines
120 B
C

#include <math.h>
float fmodf(float x, float y)
{
float res;
res = x / y;
return x - (truncf(res) * y);
}