Download User`s Guide Volume 2
Transcript
• • • • • RSVIEW MACHINE EDITION USER’S GUIDE To create a tag placeholder in an expression 1. Type the cross-hatch character followed by a number (no space in between). For example, #1. Constants A constant can have any of the following formats: integer (123) floating-point (123.45) string constant (“character string”) Arithmetic operators Arithmetic operators perform math on two or more numeric values and calculate the result. The arithmetic operators are: Symbol Operator + addition Example (For these examples, tag1 = 5 and tag2 = 7) tag1 + tag2 returns a value of 12 You can also use this operator with string operands. See page 20-7. - subtraction tag1 - tag2 returns a value of -2 * multiplication tag1 * tag2 returns a value of 35 / division tag1 / tag2 returns a value of 0.7142857 MOD,% modulus (remainder) tag2 MOD tag1 returns a value of 2 The modulus operator is the remainder of one number divided by another. In the example, the remainder of 7 divided by 5 is 2; so 7 % 5 = 2 Important: This operator is for integers only, not floating-point numbers. ** 20-6 exponent tag1 ** tag2 returns a value of 78125