% is for int
or long
, not float
or double
.
You can use fmod()
or fmodf()
from <math.h>
instead.
Better is <tgmath.h>
as suggested by the inventor of CGFloat.
% is for int
or long
, not float
or double
.
You can use fmod()
or fmodf()
from <math.h>
instead.
Better is <tgmath.h>
as suggested by the inventor of CGFloat.