- 
                Notifications
    
You must be signed in to change notification settings  - Fork 32
 
Closed
Description
julia> round(pi, RoundUp)
4.0
julia> round(Double16(pi), RoundUp)
4.0
julia> round(pi, RoundToZero)
3.0
julia> round(Double16(pi), RoundToZero)
ERROR: MethodError: no method matching round(::Double16, ::RoundingMode{:ToZero})
Closest candidates are:
  round(::Real, ::RoundingMode; digits, sigdigits, base)
   @ Base floatfuncs.jl:128
  round(::Quadmath.Float128, ::RoundingMode{:ToZero})
   @ Quadmath ~/.julia/packages/Quadmath/9AEus/src/Quadmath.jl:338
  round(::Missing, ::RoundingMode; sigdigits, digits, base)
   @ Base missing.jl:143
  ...
Stacktrace:
 [1] round(x::Double16, r::RoundingMode{:ToZero}; digits::Nothing, sigdigits::Nothing, base::Nothing)
   @ Base ./floatfuncs.jl:134
 [2] round(x::Double16, r::RoundingMode{:ToZero})
   @ Base ./floatfuncs.jl:128
 [3] top-level scope
   @ REPL[33]:1Metadata
Metadata
Assignees
Labels
No labels