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

UnitRange{Rational} misbehaves #10950

Closed
simonster opened this issue Apr 22, 2015 · 0 comments
Closed

UnitRange{Rational} misbehaves #10950

simonster opened this issue Apr 22, 2015 · 0 comments
Labels
bug Indicates an unexpected problem or unintended behavior

Comments

@simonster
Copy link
Member

julia> rg = 1//2:3
1//2:3//1

julia> length(rg)
ERROR: InexactError()
 in call at base.jl:38
 in length at range.jl:191

julia> for x in rg println(x) end
1//2
3//2
5//2
7//2
9//2
11//2
... (does not end)

I guess this should work if we adjust the endpoint on construction?

@simonster simonster added the bug Indicates an unexpected problem or unintended behavior label Apr 22, 2015
@nolta nolta closed this as completed in f0a8b59 May 14, 2015
nolta added a commit that referenced this issue May 14, 2015
mbauman pushed a commit to mbauman/julia that referenced this issue Jun 6, 2015
tkelman pushed a commit to tkelman/julia that referenced this issue Jun 6, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Indicates an unexpected problem or unintended behavior
Projects
None yet
Development

No branches or pull requests

1 participant