Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!rutgers!rochester!pt.cs.cmu.edu!dsl.pitt.edu!pitt!willett!ForthNet From: ForthNet@willett.pgh.pa.us (ForthNet articles from GEnie) Newsgroups: comp.lang.forth Subject: ANS TC for Division Message-ID: <1483.UUL1.3#5129@willett.pgh.pa.us> Date: 8 Aug 90 01:58:46 GMT Organization: String, Scotch tape, and Paperclips. (in Pgh, PA) Lines: 26 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