Binary Arithmetic OperatorsΒΆ

Material prepared from M Programming Book [WALTERS1997]

Page 43-45

Binary Arithmetic Operators allow you to perform basic mathematical operations between two number values. There exist seven distinct arithmetical operations within MUMPS.

Operator Title Example Value
+ Addition 2+2 5
- Subtraction 42-37 5
* Multiplication 7*6 42
** Exponentiation 6**2 36
/ Fractional division 9/2 4.5
\ Integer division 9\2 4
# Modulo 9#2 1