unwanted decimal in sample code

Gmation

Member
Licensed User
Longtime User
Hey guys,

I completed the sample code (Math quiz) in the tutorial with moderate success.

I am getting a n.0 + n.0 as the problem (4.0 +5.0). How do I get rid of the decimal place as the sample doesn't have it.

Thanks
 
I'm not sure Tom. I just followed the code in the PDF tutorial as I try to grasp what's going on and my numbers (not the results) show a decimal point zero.

The program compiles ok and run but when I press the new button it displays random numbers as it should only with that disturbing .0 on the end.
 
Upvote 0
I'm assuming that the values are being read on a label - suggest that you check to ensure that you have set the INPUT TYPE property to NUMBERS.
 
Upvote 0

Similar Threads

  • Article Article
Replies
0
Views
366
Replies
108
Views
104K
  • Question Question
Android Question Unwanted Notification
Replies
4
Views
2K
Replies
0
Views
4K
Back
Top