ForthNet@willett.pgh.pa.us (ForthNet articles from GEnie) (08/08/90)
Category 18, Topic 84 Message 8 Mon Aug 06, 1990 D.RUFFER [Dennis] at 22:22 EDT Re: peter@ficc.ferranti.com (Peter da Silva) > What does ANSI Forth say about the modulus operator? It should be > defined to be consistent with the division operator, no? MOD CORE (n1 n2 -- n3) Divide n1 by n2, giving the single-precision remainder n3. An exception exists if n2 is zero. If either argument lies outside the range of a single-precision non-negative integer the result is implementation-defined. [656] Additionally, in the rational for FM/MOD, you have this example: : _MOD ( n1 n2 -- n3) /_MOD DROP ; A similar example is in the rational box for SM/MOD. DaR ----- This message came from GEnie via willett through a semi-automated process. Report problems to: uunet!willett!dwp or dwp@willett.pgh.pa.us