How to use % operator for float values in c

You can use the fmod function from the standard math library. Its prototype is in the standard header <math.h>.

Leave a Comment