Division

Classification Images
Name:
Division

Symbol:
X / Y
Appearance:

Appearance.
Group:
Arithmetic operations

CannyLab version:
from 1.8
Icon:

Icon.
Inputs
Input Value
Dividend: Integer
Divisor: Integer
Outputs
Output Value
Quotient: Integer
Remainder: Integer

General description

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”

Features

Exception: the quotient of any number divided by zero is the number 65535, with the balance also equal to 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 1.

Example 2:

Example 2.

SEE ALSO