12.07.2015 Views

User's Manual SiteView – Data Logger Software

User's Manual SiteView – Data Logger Software

User's Manual SiteView – Data Logger Software

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

ight by the number of bits specified by its secondoperand.a >>= 1;< All numeric and enumeration types define a "lessthan" relational operator ( All numeric and enumeration types define a"greater than" relational operator (>) that returnstrue if the first operand is greater than the second,false otherwise.= thatreturns true if the first operand is greater than orequal to the second, false otherwise.== For predefined value types, the equality operator(==) returns true if the values of its operands areequal, false otherwise. For reference types otherthan string, == returns true if its two operandsrefer to the same object. For the string type, ==compares the values of the strings.!= The inequality operator (!=) returns false if itsoperands are equal, true otherwise. Inequalityoperators are predefined for all types, includingstring and object. User-defined types can overloadthe != operator.&The & operator can function as either a unary or abinary operator.Binary & operators are predefined for the integraltypes and bool. For integral types, & computes thelogical bitwise AND of its operands. For booloperands, & computes the logical AND of itsoperands; that is, the result is true if and only ifboth its operands are true.int a = 1;if(a < 2){}int a = 1;if(a > 2){}int a = 1;if(a = 2){}int a = 1;if(a == 2){}int a = 1;if(a != 2){}int a = 1;a = a & 0x03;^Binary ^ operators are predefined for the integraltypes and bool. For integral types, ^ computes thebitwise exclusive-OR of its operands. For booloperands, ^ computes the logical exclusive-or of itsoperands; that is, the result is true if and only ifexactly one of its operands is true.byte a = 0xf8;a = a ^ 0x3f;(a = 0xc7 )<strong>SiteView</strong> User’s <strong>Manual</strong> – Microedge Instruments Inc. 187/200

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!