11-12-2022, 12:29 AM
(This post was last modified: 11-12-2022, 12:34 AM by Kernelpanic.)
Thanks for the explanation, but basically it's very simple: NOT(a) AND NOT(b) is the same as 10 + 20 = 30 plus 1 and subsequent negation = -31.
It just doesn't always seem to work: 1, 2 are correct, but 3 is muddled, and 4 is correct again. At number 3 should be result: -51 -- Where is the mistake?
It just doesn't always seem to work: 1, 2 are correct, but 3 is muddled, and 4 is correct again. At number 3 should be result: -51 -- Where is the mistake?
Code: (Select All)
Dim As Integer a, b, c
a = 10
b = 20
c = 40
Print
Print "1"
Print (Not a) And (Not b)
Print
Print "2"
Print (Not c)
Print
Print "3"
Print (Not a) And (Not c)
Print
Print "4"
Print (Not b) And (Not c)