NOT Problem
#9
(11-16-2022, 11:06 PM)RhoSigma Wrote: Your problem is not the NOT, but the AND, and you overlook only 1 AND 1 = 1.

Output 3:

  (NOT 10) AND (NOT 15)

= (-11) AND (-16)

= (11110101) AND (11110000)

= 11110000 = -16

The last four bits result into 0s because only 1 AND 1 = 1, not 1 AND 0 and not 0 AND 1 either.

Arg, you beat me to it.

Same info, just the geeking out programming version:

   
Reply


Messages In This Thread
NOT Problem - by Kernelpanic - 11-16-2022, 09:52 PM
RE: NOT Problem - by mnrvovrfc - 11-16-2022, 10:25 PM
RE: NOT Problem - by Jack - 11-16-2022, 10:56 PM
RE: NOT Problem - by RhoSigma - 11-16-2022, 11:06 PM
RE: NOT Problem - by SMcNeill - 11-16-2022, 11:39 PM
RE: NOT Problem - by CharlieJV - 11-16-2022, 11:58 PM
RE: NOT Problem - by bplus - 11-16-2022, 11:36 PM
RE: NOT Problem - by Jack - 11-16-2022, 11:41 PM
RE: NOT Problem - by bplus - 11-16-2022, 11:43 PM
RE: NOT Problem - by Kernelpanic - 11-17-2022, 09:41 PM



Users browsing this thread: 6 Guest(s)