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

better AbstractFloat implimentation #8

Closed
oscardssmith opened this issue May 12, 2023 · 1 comment · Fixed by #9
Closed

better AbstractFloat implimentation #8

oscardssmith opened this issue May 12, 2023 · 1 comment · Fixed by #9

Comments

@oscardssmith
Copy link
Member

at least for base 2 floating point numbers, you can just get the exponent.

@jlapeyre
Copy link
Collaborator

Base.exponent has been available for this since Julia 1.0.

exponent also works for Int since Julia 1.7, but it converts the argument to a float.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants