NAND

H

Hans Knudsen

Hello
I am just curios to know why it is that

=NOT(AND(TRUE, TRUE)*1 = 0
whereas
= -(TRUE*TRUE)*1 = -1

I am aware that in VBA -1 (all bits 1) means TRUE.

Hans Knudsen
 
F

Frank Kabel

Hi Hans
=NOT(AND(TRUE, TRUE)*1
is the same as
=NOT(TRUE)*1
is the same as
=FALSE*1 = 0*1 = 0

-(TRUE*TRUE)*1 = -(1*1)*1 = -1

Note: Within worksheet functions TRUE evaluates to '1' (and not to -1)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top