public static void main(String[] args)
{
System.out.println(0.9/3);
System.out.println(0.6/3);
}
console result (complie with 1.8.0_45)
0.3
0.19999999999999998
Why I got 0.19999999999999998
instead of 0.2
like first statement 0.3
? This question seems like ridiculous but I really want to know the reason.