+ 2
Modulus operator
Is modulus operator just for int data type? How about if I want to use the modulus operator in float or another data type? Thanks for the response.
3 ответов
+ 6
float % float gives error invalid operator, same case for double % double.
Hth, cmiiw
+ 3
Yes float% float gives error
+ 2
thanks