How to use format outpout
Hello,
I would like to know how to format an output to 2 number after the comma , with this code
Code :
MinutesTF.setText("" + Minutes);
I taught It was going to be something like
MinutesTF.setText("%.2f %n" + Minutes);
But It is not working so can someone please help me ,
Thanks
Re: How to use format outpout
Quote:
I would like to know how to format an output to 2 number after the comma
2 numbers after acomma, or adecimal place? For decimal place, see the following link:
http://www.javaprogrammingforums.com...al-places.html