1.1.4 Tutorial: arithmetic operators |
Example |
/**/ A := 1; // assign the integer 1 to the variable "A" /**/ 1+2*3^4; // addition, multiplication, power 163 /**/ 1-2/3; // subtraction, division 1/3 /**/ (A > 0) and (A < 2); // greater-than, less-than, boolean "and" true /**/ (A >= 0) or (A <= 2); // greater-or-equal, less-or-equal, boolean "or" true /**/ (A = 1) or (A <> 2); // equal, not-equal true /**/ not(A > -1 and A < 3); // boolean "not" false |