This content has been marked as final. Show 6 replies
the "decimal houses" expressions is because I don'tNo hard feelings; I simply liked the "decimal houses" phrase; and more
remember how to say it in english and so I used the
portugueses expression that is "casas decimais"
important: I understood it ;-)
ThanksYou're welcome of course.
I want to print a double but if I use toString i'mVery similar to the C approach -
not able to do what I want that is something like
this in c language:
which is if I have 1,42352424554 I want to print just
Check the Javadoc of Formatter for details of this.
double v = 1.42352424554; System.out.printf("%1.2f", v);