dos_compilers/Microsoft QuickBASIC v3/manual/ng37443.html
2024-07-01 13:00:14 -07:00

46 lines
1.5 KiB
HTML

<HTML>
<HEAD><TITLE>QuickBASIC 3.0 - Long Entry</TITLE></HEAD>
<BODY>
<A HREF="ng3706a.html">[&lt;&lt;Previous Entry]</A>
<A HREF="ng34ce6.html">[^^Up^^]</A>
<A HREF="ng3770a.html">[Next Entry&gt;&gt;]</A>
<A HREF="menu.html" >[Menu]</A>
<A HREF="info.html">[About The Guide]</A>
<HR>
<PRE>
<B>NOT Logical NOT</B>
<B>NOT exp1</B>
NOT is a logical operator. BASIC converts the operand to an integer
(the result of this conversion must lie within the range -32768 to
32767, or else an Overflow error occurs), then complements each bit of
the result. That is, each resulting 1 bit becomes a 0 bit, and each
resulting 0 bit becomes a 1 bit. The result is an integer.
<B>Bitwise truth table for NOT:</B>
<U>exp1 NOT exp1</U>
1 0
0 1
<B> exp1</B> Any expression that produces a numeric result. This
includes Boolean expressions, where a TRUE result is
evaluated as -1 and a FALSE result is evaluated as 0.
</PRE>
<HR>
<B>See Also:</B>
<A HREF="ng3770a.html">AND</A>
<A HREF="ng379af.html">OR</A>
<A HREF="ng37c50.html">XOR</A>
<A HREF="ng37efe.html">EQV</A>
<A HREF="ng381a3.html">IMP</A>
<A HREF="ng34f34.html">Precedence</A>
<HR>
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by <A HREF="http://www.acemake.com/hagbard">Dave Pearson</A>
<HR>
</BODY>
</HTML>