c0de 0.3.0This page in English

Diese Seite ist noch nicht übersetzt. Sie wird auf Englisch angezeigt.

DIV ​

Divides two integers and rounds towards 0.

-7 divided by 2 is -3. A divisor of 0 raises DIVISION_BY_ZERO.

Parameters and results

  • dividend INTEGER: the number to divide
  • divisor INTEGER: the number to divide by, not 0
  • result result INTEGER: the quotient without remainder

Example

c0de
CALL c0de/math/DIV
    PARAMETER dividend items ;
    PARAMETER divisor 64 ;
    RESULT result stacks