I'm using Gforth, and I've looked for a standard Forth word for dividing two double integers, or at least a mixed division of a double integer by a single integer, yet supporting double integers as a result. There doesn't seem to be one. SM/REM
, FM/MOD
and UM/MOD
have all limitations.
Did I miss anything? Why wouldn't such a word already come built-in with Forth? The operation is well-defined and no arithmetic overflows can happen. Is it necessary to program it myself?