This documentation is out of date.

The new version of the documentation is here: https://cannylogic.com/docs

Difference between revisions of "Subtraction"

From CANNY Wiki
Jump to: navigation, search
[unchecked revision][unchecked revision]
Line 51: Line 51:
 
== Examples ==
 
== Examples ==
 
{|
 
{|
|[[Изображение:5_6_2_3.png|thumb|Пример 1]]
+
|[[File:5_6_2_3.png|thumb|Example 1]]
 
|
 
|
|[[Изображение:5_6_2_4.png|thumb|Пример 2]]
+
|[[File:5_6_2_4.png|thumb|Example 2]]
 
|}
 
|}
  

Revision as of 18:21, 23 November 2015

Appearance
5 5 2 2.png
Symbol
X - Y
Group
Arithmetic operations
Inputs
ValueX: Integer
ValueY: Integer
Outputs
Result: Integer
Version CANNY Lab
from 0.6b
Icon

Set the output result as the arithmetic subtracting the numerical value of the second output from the first.


Features

16-bit subtraction, with overflow (modulo 65535). In other words, the result of subtraction can be negative number, in case of 2nd input value more then 1st input value, the result will be the expression: X - Y + 65536.

Examples

Example 1
Example 2

See also

Addition

Multiplication

Division

Built-in Function Blocks