how to modulo decimal c
snippet in c

how to modulo decimal c

user9118

#include <math.h>

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