julia> round(Float32, 1.0)
ERROR: MethodError: no method matching round(::Type{Float32}, ::Float64)
Closest candidates are:
round(::Type{T<:Integer}, ::AbstractFloat) where T<:Integer at float.jl:337
round(::Type{T}, ::Rational{Bool}) where T at rational.jl:403
round(::Type{T}, ::Rational{Bool}, ::RoundingMode{:Nearest}) where T at rational.jl:409
...
julia> round(Float64, 1.0)
ERROR: MethodError: no method matching round(::Type{Float64}, ::Float64)
Closest candidates are:
round(::Type{T<:Integer}, ::AbstractFloat) where T<:Integer at float.jl:337
round(::Type{T}, ::Rational{Bool}) where T at rational.jl:403
round(::Type{T}, ::Rational{Bool}, ::RoundingMode{:Nearest}) where T at rational.jl:409
...