Subtract

library operator
ID: bc301ef9-52ac-4db8-a191-f0bbd84ce525
Subtracts number B from number A and emits the resulting difference.

Behavior

Test data showing the behavior of Subtract

Integers

It returns the difference of integers.

Input Output
{"a":0,"b":0} 0
{"a":1,"b":0} 1
{"a":2,"b":-5} 7
{"a":-2,"b":-5} 3
Floats

It returns the difference of floats.

Input Output
{"a":0.5,"b":0.5} 0
{"a":-1.3,"b":0.3} -1.6
{"a":-1.5,"b":-0.8} -0.7

Implementation

The implementation of Subtract makes use of the following 1 operators.

1
Evaluates an expression.

Used in

The Subtract operator is used by 1 operators.

Emits the z-score for each number of a stream of numbers.