![Obihai Technology OBi1032 Скачать руководство пользователя страница 131](http://html2.mh-extra.com/html/obihai-technology/obi1032/obi1032_administration-manual_3151346131.webp)
Copyright 2010-2017 Obihai Technology, Inc.
131
OP2 are converted to signed integers before the
Logical AND.
(3&&0) returns "0"
>
Syntax: OP1
>
OP2
Compare the numerical value of OP1 and OP2, and
returns "1" if OP1 is greater than OP2, or "0"
otherwise. OP1 and OP2 are converted to signed
integers before the compare.
(3>7) returns "0"
<
Syntax: OP1
<
OP2
Compare the numerical value of OP1 and OP2, and
returns "1" if OP1 is less than OP2, or "0"
otherwise. OP1 and OP2 are converted to signed
integers before the compare.
(3<7) returns "1"
+
Syntax: OP1
+
OP2
Return the sum of the numerical value of OP1 and
OP2. OP1 and OP2 are converted to signed integers
before the addition.
(3+7) returns "10"
-
Syntax: OP1
-
OP2
Return the difference of the numerical value of
OP1 and OP2. OP1 and OP2 are converted to
signed integers before the subtraction.
(3-7) returns "-4"
*
Syntax: OP1
*
OP2
Return the product of the numerical value of OP1
and OP2. OP1 and OP2 are converted to signed
integers before the multiply.
(3*7) returns "21"
&
Syntax: OP1
&
OP2
Bitwise AND the numerical value of OP1 and OP2.
OP1 and OP2 are converted to signed integers
before the compare.
(3&7) returns "3"
|
Syntax: OP1
|
OP2
Bitwise OR the numerical value of OP1 and OP2.
OP1 and OP2 are converted to signed integers
before the compare.
(3|7) returns "7"
~
Syntax:
~
OP1
Bitwise inverse of the numerical value of OP1. OP1
is converted to signed integer before the inversion
(~0x0f) returns "-16"
!
Syntax:
!
OP1
Logical negation of the numerical value of OP1.
OP1 is converted to signed integer before the
logical negation
(!321) returns "0"
(!0) reurns "1"
%
Syntax: OP1
%
OP2
Return the remainder of dividing the numerical
(15%3) returns "0"
(17%3) returns "2"