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

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)