Forth Medium · Lesson 8

Double-cell numbers and mixed arithmetic

Write double literals, extend with s>d, add with d+, multiply with m*, divide with um/mod, fm/mod and sm/rem, and scale safely with */.

Lessons · Forth Medium · Lesson 8 of 10

Double-cell numbers and mixed arithmetic

Write double literals, extend with s>d, add with d+, multiply with m*, divide with um/mod, fm/mod and sm/rem, and scale safely with */.

Illustration for Forth
Write double literals, extend with s>d, add with d+, multiply with m*, divide with um/mod, fm/mod and sm/rem, and scale safely with */.