Skip to content

rem not defined #102

@milankl

Description

@milankl
julia> mod(1f0, 1)
0.0f0

julia> mod(BFloat16(1f0), 1)
ERROR: rem not defined for BFloat16
Stacktrace:
 [1] error(::String, ::String, ::Type)
   @ Base ./error.jl:44
 [2] no_op_err(name::String, T::Type)
   @ Base ./promotion.jl:624
 [3] rem(x::BFloat16, y::BFloat16)
   @ Base ./promotion.jl:643
 [4] mod(x::BFloat16, y::BFloat16)
   @ Base ./float.jl:605
 [5] mod(x::BFloat16, y::Int64)
   @ Base ./promotion.jl:488
 [6] top-level scope
   @ REPL[5]:1

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions