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
 

Gmation

Member
Licensed User
Longtime User
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

Tom Law

Active Member
Licensed User
Longtime User
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
Top