\ @(#) math.fth 98/01/26 1.2
\ Copyright 1994 3DO, Phil Burk, Larry Polansky, Devid Rosenboom
\ The pForth software code is dedicated to the public domain,
\ and any third party may reproduce, distribute and modify
\ the pForth software code or any derivative works thereof
\ without any compensation or license. The pForth software
\ code is provided on an "as is" basis without any warranty
\ of any kind, including, without limitation, the implied
\ warranties of merchantability and fitness for a particular
\ purpose and their equivalents under the laws of any jurisdiction.
: FM/MOD { dl dh nn | dlp dhp nnp rem quo -- rem quo , floored }
dlp dhp nnp um/mod -> quo -> rem
: SM/REM { dl dh nn | dlp dhp nnp rem quo -- rem quo , symmetric }
dlp dhp nnp um/mod -> quo -> rem
: /MOD ( a b -- rem quo )
: */MOD ( a b c -- rem a*b/c , use double precision intermediate value )
: */ ( a b c -- a*b/c , use double precision intermediate value )