contentsconceptssyntaxlibrariessampleserrorsindex
Full text search
Operators: arithmetic
Prerequisite Concepts      

Arithmetic operators are used for performing arithmetic on numeric expressions. OmniMark supports the following five arithmetic operations: addition, subtraction, multiplication, division and modulo.

The addition operator ("+" or plus) implements addition in OmniMark. "+" is the preferred form.

The subtraction operator ("-" or minus) implements subtraction in OmniMark. "-" is the preferred form. Note: since the hyphen character used in variable names is the same character as the minus sign, OmniMark programmers must be careful to separate minus signs from names. For instance, a - b will be interpreted as a subtraction, while a-b will be interpreted as a name.

The multiplication operator ("*" or times) implements multiplication in OmniMark. "*" is the preferred form.

The division operator ("/" or divide) implements division in OmniMark. "/" is the preferred form.

The modulus operator (modulo) implements the operation of taking the modulus of a number with respect to a base value. The modulus is the remainder that you get if you divide the number by the base value.

Prerequisite Concepts
     Arithmetic and comparison operators
   Numeric expressions
 
   
----

Top [CONTENTS] [CONCEPTS] [SYNTAX] [LIBRARIES] [SAMPLES] [ERRORS] [INDEX]

Generated: April 21, 1999 at 2:00:50 pm
If you have any comments about this section of the documentation, send email to [email protected]

Copyright © OmniMark Technologies Corporation, 1988-1999.