Binary Arithmetic Operators

M言語プログラミングブック [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

Previous topic

Operators

Next topic

Indirection Operator

This Page

inserted by FC2 system