☜ | Arithmetic Operators1995 Version of ANSI (Equivalent to Current ISO Version) of Standard | ☞ |
The binary operators + - * / \ # ** are called the arithmetic binary operators. They operate on the numeric interpretations of their operands, and they produce numeric (in one case, integer) results.
+ | produces the algebraic sum. |
- | produces the algebraic difference. |
* | produces the algebraic product. |
/ | produces the algebraic quotient. Note that the sign of the quotient is negative if and only if one operand is positive and one operand is negative. Division by zero causes an error condition with ecode="M9". |
\ | produces the integer interpretation of the result of the algebraic quotient. |
# | produces the value of the left operand modulo the
right argument. It is defined only for nonzero values of its
right operand, as follows. A # B = A (B * floor(A/B)) where floor (x) = the largest integer '> x. |
** | produces the exponentiated value of the left operand, raised to the power of the right operand. Results producing complex numbers (eg, even numbered roots of negative numbers) are not defined. |
Copyright © Standard Documents; 1977-2024 MUMPS Development Committee;
Copyright © Examples: 1995-2024 Ed de Moel;
Copyright © Annotations: 2003-2008 Jacquard Systems Research
Copyright © Annotations: 2008-2024 Ed de Moel.
This page most recently updated on 15-Nov-2023, 13:17:03.
For comments, contact Ed de Moel (demoel@jacquardsystems.com)