Skip to content

Math.Subtract

Name Mandatory Description Default Type
⬅️ Input The value or the sequence of values to subtract the value specified in the Operand parameter from. IntInt2Int3Int4Int8Int16FloatFloat2Float3Float4Color[Any]
Output ➡️ This shard outputs the result of the subtraction. IntInt2Int3Int4Int8Int16FloatFloat2Float3Float4Color[Any]
Operand No The value or sequence of values to subtract from the input. 0 IntVar(Int)Int2Var(Int2)Int3Var(Int3)Int4Var(Int4)Int8Var(Int8)Int16Var(Int16)FloatVar(Float)Float2Var(Float2)Float3Var(Float3)Float4Var(Float4)ColorVar(Color)[Any]Var([Any])

This shard subtracts the value provided in the Operand parameter from the input value.

Examples

1
2
7 | Math.Subtract(Operand: 2) | Log
Assert.Is(5 Break: true)

[info] [sample-wire] 5