This discussion is archived
6 Replies Latest reply: Dec 20, 2006 3:48 PM by 807599 RSS

decide the number o decimal houses in a decimal number

807599 Newbie
Currently Being Moderated
hi,
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.


how can I do that?

Thanks