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

Scientific numeric type #252

Open
AshleyYakeley opened this issue Apr 21, 2024 · 0 comments
Open

Scientific numeric type #252

AshleyYakeley opened this issue Apr 21, 2024 · 0 comments
Labels
Milestone

Comments

@AshleyYakeley
Copy link
Owner

AshleyYakeley commented Apr 21, 2024

Create a new numeric type represented by Scientific. Use it for JSON (#168).

Possible conversions:

  • Integer <: Scientific: safe, but might conflict with Scientific <: Literal.
  • Scientific <: Rational (exact): unsafe, e.g. 1E1000000000.
  • Scientific <: Number (inexact): safe, ugly, not injective, would have to special-case Integer.
  • inexact: Scientific -> Number: safe
  • dynamic Rational -> Maybe Scientific: safe

Should literals be of type Scientific?

Should Scientific exponent be limited? If so, how? Note max Double value is 1.7976931348623157E308.

Representation as Literal: would be as large rational.

@AshleyYakeley AshleyYakeley added this to the 0.6 milestone Apr 21, 2024
@AshleyYakeley AshleyYakeley modified the milestones: 0.6, 0.7 Oct 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant