double total;
amount = Double.parseDouble(message.getText());
if (e.getSource()== tenP)
{
do
{
total = amount - 0.10;
}
while (total ==0);
message.setText(""+total);
total--;
}
Nearly works, but when it gets to 0.8 is give another long interger, not decrements by 10 after 0.8, i.e 0.7
Please help..dont know y it does that

