Binary Operator "-"

QuantScript's binary minus

-
operator implements arithmetic subtraction.

Examples:

1 50 - 50 # -> 0
2 50 - 50 - 50 # -> -50

Table of Operands

Anything not listed here results in an Unknown.
This operator is not commutative -

x - y
is not always the same as
y - x
.
This operator is type-commutative - the type of
x - y
is the same as the type of
y - x
.
This operator is left associative -
x - y - z
is the same as
(x - y) - z
.

Left OperandOperatorRight OperandResult
Number-NumberNumber
Number-Series<Number>Series<Number>
Number-MultiDataset<Number>MultiDataset<Number>
Series<Number>-MultiDataset<Number>MultiDataset<Number>