$Header: /home/radek/cvs/forth-book/dictionary/ansi/0110.star-slash-mod,v 1.1 2003/12/28 18:21:57 radek Exp $

Jméno

*/MOD — FIXME: jednořádkový popis

CORE

Přehled

( n1 n2 n3 → n4 n5 )

Definováno v: dpANS Forth 6.1.0110 CORE

Popis

FIXME:vynásobí n1 n2 a výsledek dělí n3. Mezivýsledky jsou v dvojnásobné velikosti.

Výsledek by měl být stejný jako u posloupností příkazů

>R M* R> FM/MOD SWAP DROP

nebo

>R M* R> SM/REM SWAP DROP

Description

Multiply n1 by n2 producing the intermediate double-cell result d. Divide d by n3 producing the single-cell remainder n4 and the single-cell quotient n5. An ambiguous condition exists if n3 is zero, or if the quotient n5 lies outside the range of a single-cell signed integer. If d and n3 differ in sign, the implementation-defined result returned will be the same as that returned by either the phrase >R M* R> FM/MOD or the phrase >R M* R> SM/REM

Příklad použití

FIXME:

Kód slova v Qurtus Forthu

Příklad 48. *:[90]