joe
0
Q:

how to modulo decimal c

#include <math.h>

int main(void)
{
	// use the fmod() function
 	printf("%f", fmod(0.5, 2.0));
}
2

New to Communities?

Join the community