I think this is a bug in the math somewhere. Yes, you are correct. This should be 0. If you change the code to be...
float myFloat;
float firstFloat = 6.4f;
float secondFloat = 2.1f;
myFloat = firstFloat % secondFloat;
System.out.println(myFloat);
You should get .1 for your answer, however instead you get
0.10000038 for your answer. Obviously we have an lack of precision here somewhere in the logic of this operator.
Hope this helps.
Dale
------------------
What's this H2SO4 doing in my fridge?? ( thud )