MikroElektronika PIC Microcontrollers PIC16 Datový list Strana 30

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 194
  • Tabulka s obsahem
  • ŘEŠENÍ PROBLÉMŮ
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 29
Programming PIC Microcontrollers in BASIC - mikroElektronika
BASIC also has two unary arithmetic operators:
Operator Operation Operand types Result type
+ (unary) sign identity short, integer,
longint
short, integer,
longint
- (unary) sign negation short, integer,
longint
short, integer,
longint
Unary arithmetic operators can be used to change sign of variables:
a = 3
b = -a
' assign value -3 to b
3.2 Boolean Operators
Boolean operators are not true operators, because there is no boolean data type defined
in BASIC. These operators conform to standard Boolean logic. They cannot be used
with any data type, but only to build complex conditional expression.
Operator Operation
not negation
and conjunction
or disjunction
For example:
http://www.mikroelektronika.co.yu/english/product/books/picbasicbook/03.htm (3 sur 6)05/11/2004 02:14:47
Zobrazit stránku 29
1 2 ... 25 26 27 28 29 30 31 32 33 34 35 ... 193 194

Komentáře k této Příručce

Žádné komentáře