+ 7
Can we use modulus operator ( % ) with float valu..?
Modulus operator used with float valu
8 Respuestas
+ 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