Skip to content

Commit 940f6ca

Browse files
authored
Fix typo in rounding
1 parent 4416838 commit 940f6ca

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/math/prearith/floorceiltrunc.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,11 +74,11 @@ function round(x::DoubleFloat{T}, ::RoundingMode{:Down}) where {T<:IEEEFloat}
7474
return floor(x)
7575
end
7676

77-
function round(x::DoubleFloat{T}, ::RoundingMode{:RoundToZero}) where {T<:IEEEFloat}
77+
function round(x::DoubleFloat{T}, ::RoundingMode{:ToZero}) where {T<:IEEEFloat}
7878
return isnegative(x) ? ceil(x) : floor(x)
7979
end
8080

81-
function round(x::DoubleFloat{T}, ::RoundingMode{:RoundFromZero}) where {T<:IEEEFloat}
81+
function round(x::DoubleFloat{T}, ::RoundingMode{:FromZero}) where {T<:IEEEFloat}
8282
return isnegative(x) ? floor(x) : ceil(x)
8383
end
8484

0 commit comments

Comments
 (0)