![]() |
B.2 Mathematical and Logical Operators |
+ addition - subtraction * multiplication / division ^ exponentiation ++ increment a variable's value.. For example: counter++
< less than X is less than Y <= less than or equal to X is less than or equal to Y = equals X is equal to Y > greater than X is greater than Y >= greater than or equal to X is greater than or equal to Y <> not equal to X is not equal to Y NOT NOT X TRUE if X is false AND X AND Y TRUE if X and Y are both true OR X OR Y TRUE if either X or Y are true XOR X XOR Y TRUE if X is true, or if Y is true, FALSE if X and Y are both true or both false IMP X IMP Y TRUE if X is true and Y is false EQV X EQV Y TRUE if X and Y are true, or TRUE if X and Y are false, FALSE otherwiseIn addition there are a lot of built-in mathematical functions. See common math functions and transcendental functions for details.
Z - (X / (Y+AMOUNT))Sheerpower evaluates the expression Y + AMOUNT first. Next, it divides the X by that result. Finally, it subtracts the entire expression from Z.
NOT AND OR XOR IMP EQVFor clarity, Parentheses can be used around every set of operations. This makes it easy to pick out the beginning and end of an operation, and will make absolutely clear what is intended without depending on the order of precedence of operators.
Hide Description
|
|
Looking for the full power of Sheerpower?
Check out the Sheerpower website. Free to download. Free to use. |