Talk:SmileBASIC (Petit Computer 3)/@comment-15296152-20141126001851/@comment-5334617-20141126232345

If integer variables are implemented simply as floating-point values with noninteger parts of the value removed, with no regard to the size of the mantissa, this means that adding one to an integer value may yield the same integer value. The following program would print " ", instead of giving an overflow error.

A%=1 WHILE TRUE PRINT "Testing ";A% B%=A%+1 IF B%==A% THEN PRINT "Failed!": STOP A%=A%*2 WEND