G Gmation Member Licensed User Longtime User Dec 20, 2011 #1 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
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
T Tom Law Active Member Licensed User Longtime User Dec 20, 2011 #2 Are you using int values - or something else. An integer will not show a decimal place. Upvote 0
G Gmation Member Licensed User Longtime User Dec 20, 2011 #3 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 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.
T Tom Law Active Member Licensed User Longtime User Dec 20, 2011 #4 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
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.
klaus Expert Licensed User Longtime User Dec 20, 2011 #5 Hi Gmation, You should download the last version of the Beginner's Guide, Edition 1.4, this problem has been modified. By default, interger values of float or double variables are dispayed with the dot and the 0. Best regards. Upvote 0
Hi Gmation, You should download the last version of the Beginner's Guide, Edition 1.4, this problem has been modified. By default, interger values of float or double variables are dispayed with the dot and the 0. Best regards.