+ 7
Can we use modulus operator ( % ) with float valu..?
Modulus operator used with float valu
5 Answers
+ 2
Try this one
https://code.sololearn.com/c3tZ9GW8s7Vq/?ref=app
+ 2
En java % es el resto de una divisiĂłn, es decir que si divides valores enteros esta devolverĂĄ un valor entero y si usas valores flot devolverĂĄ valores float.
In java % is the rest of a division, meaning that if you divide integer values ââit will return an integer value and if you use flot values ââit will return float values.
+ 2
you can use in java.
the result is the remainder.
+ 2
No we just can't use %for float type
+ 2
No we can't able to use %(modulus operators),it lead to compiler run time error. modulus operators can only be by the integer values