Arith Difference: Unterschied zwischen den Versionen

Aus expecco Wiki (Version 2.x)
Zur Navigation springen Zur Suche springen
 
Zeile 13: Zeile 13:
== Automatic Type Conversion ==
== Automatic Type Conversion ==
The block allows for mixed mode arithmetic. This means that all combinations of [[Numbers/en| numbers]] are allowed as input.
The block allows for mixed mode arithmetic. This means that all combinations of [[Numbers/en| numbers]] are allowed as input.
<br>However, due to the pins being of type "[[Numbers/en| Number]]", non-numbers (such as physical values or vectors) are not handled (unless type checks are disabled at the pins). Use the new [[ Arith Difference Any|"Arith [ Difference Any ]" ]] block for this.<br>
<br>However, due to the pins being of type "[[Numbers/en|Number]]", non-numbers (such as physical values or vectors) are not handled (unless type checks are disabled at the pins). Use the new [[ Arith Difference Any|"Arith [ Difference Any ]" ]] block for this.<br>
For details on the conversion rules, please refer to the documentation of the
For details on the conversion rules, please refer to the documentation of the
[[ Arith Sum | "Arith [ Sum ]" ]] block.
[[ Arith Sum | "Arith [ Sum ]" ]] block.

Aktuelle Version vom 9. Mai 2025, 18:30 Uhr

Schema[Bearbeiten]

Datei:Arith difference.png

Trigger[Bearbeiten]

Both inputs must be connected and both must have received a value for the action to trigger ("and" input behavior)

Operation[Bearbeiten]

This block returns the difference between two given numbers. I.e.

difference = number1 - number2.

Automatic Type Conversion[Bearbeiten]

The block allows for mixed mode arithmetic. This means that all combinations of numbers are allowed as input.
However, due to the pins being of type "Number", non-numbers (such as physical values or vectors) are not handled (unless type checks are disabled at the pins). Use the new "Arith [ Difference Any ]" block for this.
For details on the conversion rules, please refer to the documentation of the "Arith [ Sum ]" block.

Revisions[Bearbeiten]

This block has been in the Standard Library since 0.1.


Back to Standard Library.
Previous: Arith [ Distance ]
Next: Arith [ Difference+ ]



Copyright © 2014-2024 eXept Software AG