posted 20 years ago
if we use
System.out.print(Math.max(99.9f,99.9));
then it prints 99.9000015258789
and if we use
System.out.print(Math.max(99.9,99.9))
or
System.out.println(Math.max(99.9f,99.9f))
then it prints 99.9
what's the reason pl's explain me