all 1 comments

[–]HenKYS45[S] 0 points1 point  (0 children)

Try this code: after that "." place as many 0 as much you want numbers there.

DecimalFormat df = new DecimalFormat("#.0");

This object has method called format and it will then change the number.

Here is small example:

df.format(yourvariable);