[comp.lang.forth] Floored Division

wmb@SUN.COM (07/07/89)

The solution to the floored vs. not floored division problem is so simple
that I have trouble believing all the furor.

Have both.

Since Forth 83 is floored, "/" should continue to be floored.
Then add a standard word:

  NF/MOD Non-floored division/modulus

The code to implement this in terms of the floored /MOD should be
published in the standard, for reference.

This way, programs which require floored division can use it, and
programs which require non-floored division can use it.

Trying to make too few words do too many things is the guaranteed
way to make programs non portable.

Mitch