Skip to content

Add Int#tdivmod#16258

Merged
straight-shoota merged 6 commits intocrystal-lang:masterfrom
andrykonchin:ak/add-int-tdivmod
Oct 27, 2025
Merged

Add Int#tdivmod#16258
straight-shoota merged 6 commits intocrystal-lang:masterfrom
andrykonchin:ak/add-int-tdivmod

Conversation

@andrykonchin
Copy link
Contributor

Changes:

  • added a new method Int#tdivmod that is similar to #divmod but uses truncated division

Closes #14948

@straight-shoota straight-shoota added this to the 1.19.0 milestone Oct 25, 2025
@straight-shoota straight-shoota merged commit 314e646 into crystal-lang:master Oct 27, 2025
41 of 42 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.

Truncated quotient and remainder

6 participants