Arith Distance/en: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
Cg (Diskussion | Beiträge) |
|||
(3 dazwischenliegende Versionen von 2 Benutzern werden nicht angezeigt) | |||
Zeile 13: | Zeile 13: | ||
== Automatic Type Conversion == |
== Automatic Type Conversion == |
||
The block allows for mixed mode arithmetic. This means that all combinations of |
The block allows for mixed mode arithmetic. This means that all combinations of numbers are allowed as input. |
||
For details on the conversion rules, please refer to |
<br>For details on the conversion rules, please refer to the documentation of the |
||
[[ Arith Sum | "Arith [ Sum ]" ]] block. |
[[ Arith Sum | "Arith [ Sum ]" ]] block. |
||
Zeile 24: | Zeile 24: | ||
<!--AutoUpdateNavPanel--> |
<!--AutoUpdateNavPanel--> |
||
<hr> |
|||
---- |
|||
Back to [[Standard_Library#Arithmetic|Standard Library]].<br> |
Back to [[Standard_Library#Arithmetic|Standard Library]].<br> |
||
Previous: [[Arith Sumn|Arith [ SumN ]]]<br> |
Previous: [[Arith Sumn|Arith [ SumN ]]]<br> |
Aktuelle Version vom 16. September 2021, 07:04 Uhr
Inhaltsverzeichnis
Schema[Bearbeiten]
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 distance between two given numbers. The distance is the absolute value of the difference; i.e.
dist = |number1 - number2|
with |x| denoting the absolute value of x.
Automatic Type Conversion[Bearbeiten]
The block allows for mixed mode arithmetic. This means that all combinations of numbers are allowed as input.
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.