This documentation is out of date.

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

Division

From CANNY Wiki
Revision as of 06:52, 23 November 2015 by MEGA (Talk | contribs) (Created page with " <div style="float:right;margin:5px;"> {|class="cannytable" width="350px" |- !colspan="2" style="background-color:#AFEEEE;"|Appearance |- |colspan="2" align="center" style="...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Jump to: navigation, search
Appearance
5 5 2 2.png
Symbol
X / Y
Group
Arithmetic operations
Inputs
ValueX: Numeric
ValueY: Numeric
Outputs
Result: Numeric
Version CANNY Lab
from 1.8

Set output "Quotient" as the result of integer division of the input "Dividend" values to the input "Divider" value, the remainder of the division is set at the output of "Remainder"

</div>

Features

Исключение: частным от деления любого числа на ноль будет число 65535, при остатке равном также 65535.

Prior to CANNY Lab version 1.8, the function block has been divided into two sections: the 'Divide' and the 'Remainder'.

Examples

Example 1
Example 2

See also

Addition

Subtraction

Multiplication

Built-in Function Blocks