This documentation is out of date.
The new version of the documentation is here: https://cannylogic.com/docs |
Difference between revisions of "Addition"
From CANNY Wiki
[unchecked revision] | [unchecked revision] |
(2 intermediate revisions by 2 users not shown) | |||
Line 6: | Line 6: | ||
!colspan="2" style="background-color:#AFEEEE;"|Appearance | !colspan="2" style="background-color:#AFEEEE;"|Appearance | ||
|- | |- | ||
− | |colspan="2" align="center" style="padding:10px;"|[[File: | + | |colspan="2" align="center" style="padding:10px;"|[[File:5_6_1_2.png]] |
|- | |- | ||
!colspan="2" style="background-color:#AFEEEE;"|Symbol | !colspan="2" style="background-color:#AFEEEE;"|Symbol | ||
Line 41: | Line 41: | ||
<div> | <div> | ||
− | Set the output result of the inputs numerical values arithmetic addition. | + | Set the output as a result of the inputs numerical values arithmetic addition. |
</div> | </div> | ||
</div> | </div> | ||
Line 48: | Line 48: | ||
== Features == | == Features == | ||
16-bit addition, with overflow (modulo 65535). | 16-bit addition, with overflow (modulo 65535). | ||
− | In other words, the result of addition can not exceed 65535, in case of inputs values sum | + | In other words, the result of addition can not exceed 65535, in case of inputs values sum exceeds the value of 65535, the result will be the expression: X + Y - 65536. |
== Examples == | == Examples == |
Latest revision as of 08:36, 8 April 2016
Appearance | |
---|---|
Symbol | |
X + Y | |
Group | |
Arithmetic operations | |
Inputs | |
ValueX: | Integer |
ValueY: | Integer |
Outputs | |
Result: | Integer |
Version CANNY Lab | |
from 0.6b |
Features
16-bit addition, with overflow (modulo 65535). In other words, the result of addition can not exceed 65535, in case of inputs values sum exceeds the value of 65535, the result will be the expression: X + Y - 65536.