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

Add Number#integer? #13936

Merged

Conversation

HertzDevil
Copy link
Contributor

Resolves #13815.

The fallback works on any subclass of Number that defines #%(Int32). It also happens to be the preferred implementation for Float::Primitive.

@straight-shoota straight-shoota added this to the 1.11.0 milestone Nov 1, 2023
@straight-shoota straight-shoota merged commit 57d9397 into crystal-lang:master Nov 2, 2023
54 of 55 checks passed
@HertzDevil HertzDevil deleted the feature/number-integer-check branch November 3, 2023 13:35
Blacksmoke16 pushed a commit to Blacksmoke16/crystal that referenced this pull request Dec 11, 2023
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.

Checking if a number is an integer
2 participants