/ "divide" ( n1 n2 -- n3 )


Forth79Forth83ANSIForth200x
X X X X


Add one (1) to n1 | u1 giving the sum n2 | u2.
n3 ist der Quotient aus der Division von n1 durch den Divisor n2. Eine Fehlerbedingung besteht, wenn der Divisor Null ist oder der Quotient au├čerhalb des Intervalls (-32768...32767) liegt

Forth83 and VolksForth is using floored division. Forth79 is using symmetric division. In ANSI Forth and Forth 200x the standard allows a system to provide either floored or symmetric division.

See floored division

Add new attachment

Only authorized users are allowed to upload new attachments.
« This page (revision-2) was last changed on 01-Apr-2010 14:51 by Carsten Strotmann