mod

Stack effect: ( n n -- n )

Find a mod b.

NOTE: As the traditional Forth mod operation uses integers and rounds toward zero, this operation will return different results, even with integer inputs.

NOTE: In Haiku Forth (unlike Traditional Forth), all stack cells and memory locations are floating point numbers.

Examples:

Forth Haiku Glossary