ProtoFlux:Sub: Difference between revisions

From Resonite Wiki
Filled in this node page.
Added a suggestion note.
Line 16: Line 16:


{{Note|Keep in mind that the subtraction operation is antisymmetric (where you put your inputs matter), and is [https://en.wikipedia.org/wiki/Anticommutative_property Anticommutative] (which basically means if you swap the inputs but made the result have the opposite sign, you can get the same answer).|warning}}
{{Note|Keep in mind that the subtraction operation is antisymmetric (where you put your inputs matter), and is [https://en.wikipedia.org/wiki/Anticommutative_property Anticommutative] (which basically means if you swap the inputs but made the result have the opposite sign, you can get the same answer).|warning}}
{{Note|If you just need to subtract 1 from your value, use the [[ProtoFlux:Value Dec|Value Dec]] node.
If you need to decrement a value from an [[Impulses|impulse]], use the [[ProtoFlux:Decrement|Decrement]] node instead.|suggestion}}


== Inputs ==
== Inputs ==

Revision as of 14:50, 27 June 2024

-
A
*
B
Operators

The Sub node takes in 2 inputs and returns the calculated result. The second input (B) will take away anything from the first input (A).

Keep in mind that the subtraction operation is antisymmetric (where you put your inputs matter), and is Anticommutative (which basically means if you swap the inputs but made the result have the opposite sign, you can get the same answer).
If you just need to subtract 1 from your value, use the Value Dec node.

If you need to decrement a value from an impulse, use the Decrement node instead.

Inputs

A (Pseudo-Generic)

The value we have.

B (Pseudo-Generic)

The value we want to take away.

Outputs

* (Pseudo-Generic)

The new result from this operation.

See Also