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

0.5/0.6 weirdness #34

Closed
quinnj opened this issue Mar 19, 2017 · 5 comments
Closed

0.5/0.6 weirdness #34

quinnj opened this issue Mar 19, 2017 · 5 comments

Comments

@quinnj
Copy link
Collaborator

quinnj commented Mar 19, 2017

@stevengj, any idea what's going on here? Some kind of library version error maybe?

Julia 0.5

julia> DecFP._nextfloat(one(Dec32))
+1000001E-6

Julia 0.6

julia> DecFP._nextfloat(one(Dec32))
+9999999E-7
@stevengj
Copy link
Member

Is one producing the same result?

@quinnj
Copy link
Collaborator Author

quinnj commented Mar 24, 2017

On 0.6

julia> using DecFP

julia> one(Dec64)
+1E-398

@stevengj
Copy link
Member

That's weird, one is defined as one{T<:Number}(::Type{T}) = convert(T,1) in both 0.6 and 0.5.

@stevengj
Copy link
Member

I just patched DecFP for Julia 0.6; can you try it again? It works for me.

@quinnj
Copy link
Collaborator Author

quinnj commented Mar 29, 2017

Yes, it works for me now.

@quinnj quinnj closed this as completed Mar 29, 2017
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