Skip to content

Commit

Permalink
round :Down removed
Browse files Browse the repository at this point in the history
  • Loading branch information
milankl committed Jan 16, 2024
1 parent 40d8758 commit 99ccdb1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/bfloat16.jl
Original file line number Diff line number Diff line change
Expand Up @@ -54,5 +54,4 @@ Base.BigFloat(x::BFloat16) = BigFloat(Float32(x))

Base.maxintfloat(::Type{BFloat16}) = reinterpret(BFloat16,0x4380)

Base.round(x::BFloat16, r::RoundingMode{:ToZero}) = BFloat16(trunc(Float32(x)))
Base.round(x::BFloat16, r::RoundingMode{:Down}) = BFloat16(floor(Float32(x)))
Base.round(x::BFloat16, r::RoundingMode{:ToZero}) = BFloat16(trunc(Float32(x)))

0 comments on commit 99ccdb1

Please sign in to comment.