Applesoft's PRINT statement truncates a number that is extremely close to being an integer. For example, 3^2 and 3*3 will both print as 9 but won't compare as equal. Printing 3^2 - 3*3 will result in 3.7252903E09, while the expression 3^2 = 3*3 is false.
Also, Applesoft uses natural logarithms to calculate many of its trancendental functions, which adds small errors to the results.
To avoid comparison problems, round Applesoft real numbers to a specific number of decimal places.
Use the formula: X = INT(X*P+.5)/P
where P=10 for 1 decimal place, P=100 for 2 decimal places and P=1000 for 3 decimal places, etc.