Skip to content

round methods missing in base #24021

@ethomag

Description

@ethomag

Referencing this discourse entry

In Julia 0.6, there seems to be some round methods missing for basic types in Base:

julia> round(Float32, 1.0)
ERROR: MethodError: no method matching round(::Type{Float32}, ::Float64)
[...]
julia> round(Float64, 1.0)
ERROR: MethodError: no method matching round(::Type{Float64}, ::Float64)
[...]
julia> round(Complex64, Complex(0, 1.0))
ERROR: MethodError: no method matching round(::Type{Complex{Float32}}, ::Complex{Float64})
[...]

I interpreted @StefanKarpinski 's entry as a request to file an issue. I hope I did the right thing ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    HacktoberfestGood for Hacktoberfest participantsmathsMathematical functions

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions