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

Inf + 1 returns NaN #13

Closed
mtanneau opened this issue Dec 24, 2020 · 1 comment
Closed

Inf + 1 returns NaN #13

mtanneau opened this issue Dec 24, 2020 · 1 comment

Comments

@mtanneau
Copy link

There seems to be something wrong with how Inf is treated when higher precision is used:

julia> Float64x1(-Inf) - 1
-Inf
julia> Float64x2(-Inf) - 1  # Same happens for Float64x3, etc
NaN

and

julia> Float64x1(Inf) + 1
Inf
julia> Float64x2(Inf) + 1  # Same happens for Float64x3, etc
NaN
@dzhang314
Copy link
Owner

Hey @mtanneau , the remarks from the comment I left on your other issue also apply here. Adding the link for reference.

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

No branches or pull requests

2 participants