Skip to content

Feature request: More Float primitives. #1457

Closed
@EdAyers

Description

@EdAyers

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions