0
does modulus operation ever give fraction values as output?
2 Respostas
+ 2
The "%" operator works on integers and returns an integer value. If you want to compute the modulus on doubles, please have a look at function fmod().
0
no, the modulus operator only returns an integer which is the remainder of the division