C language: float % float why expression must have integral type

I try to do this operation so see if this operation will take only the complete part (20%4) or all (20.4%4.4)

float x = 20.4;
float y = 4.0;
float z;
z = x%y;

And got this compiler error:

expression must have integral type

Leave a Comment

deneme bonusu veren sitelerbahis casinomakrobetceltabetpinbahispolobetpolobet girişpinbahis girişmakrobet girişpulibet girişmobilbahis girişkolaybet giriş