That's just a consequence of how floating point works - literally thousands of other references to these issues here on SO alone. The short version is that not all numbers can be represented exactly using floating point numbers, which leads to oddities like the one you're seeing. This document should teach you all you should know about floating point.
In the mean time you can use format to get printf-like formatting options:
System.out.format ("%.0f libras e %.2f On?as.
",libras,oncas);
or if you have to use that specific println method, use String's format:
println(String.format ("%.0f libras e %.2f On?as.",libras,oncas) );
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…