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

feat(runtime): Allow modulo on floating point numbers #1914

Merged
merged 3 commits into from
Jan 30, 2024

Conversation

spotandjake
Copy link
Member

This pr adds floating point modulo support closing #1371

stdlib/runtime/numbers.gr Outdated Show resolved Hide resolved
@spotandjake spotandjake linked an issue Jan 16, 2024 that may be closed by this pull request
@ospencer
Copy link
Member

@spotandjake #1993 was the major reason you were seeing the DecRefError. While debugging, I noticed some places we're a bit sloppy when we need to hold on to references, but I'll address those separately.

stdlib/runtime/numbers.gr Outdated Show resolved Hide resolved
stdlib/runtime/numbers.gr Outdated Show resolved Hide resolved
@ospencer ospencer changed the title feat(runtime): floating point modulo support feat(runtime): Floating point modulo support Jan 30, 2024
@phated phated changed the title feat(runtime): Floating point modulo support feat(runtime): Allow modulo on floating point numbers Jan 30, 2024
@phated phated added this pull request to the merge queue Jan 30, 2024
Merged via the queue into grain-lang:main with commit f90d8af Jan 30, 2024
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Modulo Throws Misleading Error When Used On A Float
4 participants