dusa icon indicating copy to clipboard operation
dusa copied to clipboard

Support integer division and modulus buildins

Open robsimmons opened this issue 1 year ago • 0 comments

Multiple possibilities here:

div 7 4 is 2
mod 7 4 is 3

or

divmod 7 4 is [2, 3]

Relatedly, allowing multiplication to be run backwards naturally gives exact division:

a X :- times X 4 is 12.

... will naturally derive a 3.

robsimmons avatar Jun 07 '24 19:06 robsimmons