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

Feature request: More Float primitives. #1457

Closed
EdAyers opened this issue Aug 11, 2022 · 2 comments · Fixed by #1460
Closed

Feature request: More Float primitives. #1457

EdAyers opened this issue Aug 11, 2022 · 2 comments · Fixed by #1460

Comments

@EdAyers
Copy link
Contributor

EdAyers commented Aug 11, 2022

Please could we have the following primitives available for Float. I think they can all be implemented in terms of the other primitives but they would be nice to have explicitly. The particular problem I am trying to solve is writing a JSON encoding for Float (ideally without going via a string). I had a go at adding these but I couldn't get the bootstrapping to work.

  • isinf
  • isnan
  • isfinite
  • frexp
  • I'm not sure what the appropriate primitive is, but getting the integer mantissa and exponent from a Float in a platform-safe way.
@digama0
Copy link
Collaborator

digama0 commented Aug 11, 2022

I can try to implement this if the devs are okay with it.

@leodemoura
Copy link
Member

I can try to implement this if the devs are okay with it.

@digama0 Thanks for volunteering. Please go ahead.

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.

3 participants