Arith Distance: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
Inhalt gelöscht Inhalt hinzugefügt
Cg (Diskussion | Beiträge) |
Cg (Diskussion | Beiträge) |
||
| Zeile 10: | Zeile 10: | ||
This block returns the distance between two given numbers. The distance is the absolute value of the difference; i.e. |
This block returns the distance between two given numbers. The distance is the absolute value of the difference; i.e. |
||
''dist'' = | ''number1'' - ''number2'' | |
''dist'' = | ''number1'' - ''number2'' | |
||
with |
with |x| denoting the absolute value of x. |
||
== Automatic Type Conversion == |
== Automatic Type Conversion == |
||
Version vom 19. Dezember 2014, 02:04 Uhr
Schema
Trigger
Both inputs must be connected and both must have received a value for the action to trigger ("and" input behavior)
Operation
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
The block allows for mixed mode arithmetic. This means that all combinations of Float, Double, Integer, LargeInteger and Fractional numbers are allowed as input. For details on the conversion rules, please refer to the description in the documentation of the "Arith [ Sum ]" block.
Revisions
This block has been in the Standard Library since 0.1.
