> the "decimal houses" expressions is because I don't
> remember how to say it in english and so I used the
> portugueses expression that is "casas decimais"
No hard feelings; I simply liked the "decimal houses" phrase; and more
important: I understood it ;-)
> Thanks
You're welcome of course.
kind regards,
Jos
> I want to print a double but if I use toString i'm
> not able to do what I want that is something like
> this in c language:
> printf("%2f",var);
>
> which is if I have 1,42352424554 I want to print just
> 1.42
Very similar to the C approach -
double v = 1.42352424554;
System.out.printf("%1.2f", v);
Check the Javadoc of Formatter for details of this.