I'm new to Java and learning about the % operator. However I have a problem:
System.out.println(510%5); //this produces a correct output of 0
System.out.println((5.1*100)%(0.05*100)); //but this produces 4.9999
Technically they're the same numbers, but why are the outputs different?