Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support integer division and modulus buildins #30

Open
robsimmons opened this issue Jun 7, 2024 · 0 comments
Open

Support integer division and modulus buildins #30

robsimmons opened this issue Jun 7, 2024 · 0 comments

Comments

@robsimmons
Copy link
Owner

robsimmons commented Jun 7, 2024

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 robsimmons changed the title Support division and modulous buildins Support division and modulus buildins Jun 13, 2024
@robsimmons robsimmons changed the title Support division and modulus buildins Support integer division and modulus buildins Jun 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant