-
Notifications
You must be signed in to change notification settings - Fork 379
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
Double IEEE constants: infinity, NaN, epsilon ... where are they? #29
Comments
Comment by edwinb I've labelled this with "Feature request" - we ought to have them really. If anyone wants pointers on where to start implementing it, please let me know. |
@edwinb I'd like to start contributing to Idris 2 and I find this issue interesting. Could you give me a hint on where to start? |
I think the right places to start would be:
where you'll need to add binding for the primitive constants, and also the places where the primitives are defined, e.g.
where you'll need to define primitive Scheme / Racket primitives to bind to. |
The primitives should be defined in |
Ah, sorry for misleading. I've removed my incorrect text. |
Only parsing for NaN, looks like doing anything useful with it will have to wait for [this issue](idris-lang/Idris2#29) Signed-off-by: Alex Humphreys <alex.humphreys@here.com>
Only parsing for NaN, looks like doing anything useful with it will have to wait for [this issue](idris-lang/Idris2#29) Signed-off-by: Alex Humphreys <alex.humphreys@here.com>
Only parsing for NaN, looks like doing anything useful with it will have to wait for [this issue](idris-lang/Idris2#29) Signed-off-by: Alex Humphreys <alex.humphreys@here.com>
Combined, the IEEE-related commits close idris-lang#29
Issue by nicolabotta
Tuesday Oct 29, 2019 at 07:48 GMT
Originally opened as edwinb/Idris2-boot#146
Is there a way of accessing these values in Idris 2? Something like
Numeric.IEEE
in Haskell? At lestepsilon
,infinity
andNaN
are badly needed, e.g., to implement interval arithmetics! Thanks, NicolaThe text was updated successfully, but these errors were encountered: