05-25-2024, 12:17 AM
(This post was last modified: 05-25-2024, 02:22 AM by eoredson.
Edit Reason: Compler error
)
(05-24-2024, 04:40 PM)gaslouk Wrote:I think this is the solution I was looking for! Thanks. Erik.Code: (Select All)
T = 10
' Compute the bitwise NOT of T
' NOT 10 is -11 in QB64 (bitwise NOT flips the bits)
T = T * NOT T
' T now becomes 10 * -11 = -110
PRINT T
T = 10
' Compute the negation of T
T = T * -T
' T now becomes 10 * -10 = -100
PRINT T
END
No comments.
It might be a workaround but still begs the question why it causes a compilation error when trying T = T NOT T