gooofy / aqb

A BASIC Compiler and IDE for Amiga Computers
MIT License
74 stars 7 forks source link

the power of equality #50

Closed blackborn66 closed 1 year ago

blackborn66 commented 1 year ago

looks equal, but not the same results! often it's -8 but sometimes +8

DIM AS SINGLE s1, s2
s1 = -2
s2 = 3
TRACE "-2 ^ 3", -2 ^ 3, -s1 ^ 3, -2 ^ s2, s1 ^ s2
TRACE "-2 * -2 * -2", s1 * s1 * s1
rollefko commented 1 year ago

-s1 ^ 3 is not -2 ^ 3 typo?

blackborn66 commented 1 year ago

Yes typo! But both looks wrong in result