We are about to switch to a new forum software. Until then we have removed the registration on this forum.
V 2.0.3 Windows 7 println(4%3); println(4.5%3); println(4.0%3.0); println(3.5%4.0); //-------- Output 1 1.5 1.0 3.5
So what's the problem? Those are the values you should get.
Java natively supports modulus for float and double, http://mindprod.com/jgloss/modulus.html and see this from doc http://www.processing.org/reference/modulo.html, beware negative modulus in java it is very strange.
Thank
Answers
So what's the problem? Those are the values you should get.
Java natively supports modulus for float and double, http://mindprod.com/jgloss/modulus.html and see this from doc http://www.processing.org/reference/modulo.html, beware negative modulus in java it is very strange.
Thank