I have problem with a decimal number format.
Here is my code
NumberFormat numberFormatter = new DecimalFormat("#.##");
String amount = numberFormatter.format(0.00);
but when running the program, TextField shows just 0. I have a mechanism that increases the number by 0.5, so when increase it shows 0.5 and not 0.50. How I can fix it?
Thank you
toto_7


Sign In
Create Account


Back to top









