JuliaApproximation / JuliaApproximation/DomainSets.jl
Overload float
Open
Nobody has claimed this yet.
- Dominant language
- Julia
- Stars
- 79
- Forks
- 12
- Avg merge
- 6d 22h
- Merged PRs (30d)
- 2
Description
julia> float(-1..1) # works
-1.0 .. 1.0
julia> float((-1..1)^2) # should work
ERROR: MethodError: no method matching AbstractFloat(::DomainSets.Rectangle{SVector{2, Int64}})
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the Julia REPL examples for float(-1..1) and float((-1..1)^2), then trace how float handles the resulting DomainSets.Rectangle and its SVector bounds. Done means the second expression works without the shown MethodError and preserves the expected converted interval behavior; no source file or test is named in the issue.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- julia
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100