double

Java beginner doubt-why is the result of the double variable wrong? [duplicate]

this question already has answers here : ... System.out.println(resultado); The value it returns to me is 0.1999999999999993, when I think the correct would be 0.2