File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -91,7 +91,7 @@ divexact(a::Rational{T}, b::AbstractFloat; check::Bool=true) where T <: Union{Si
9191divexact (a:: Rational{BigInt} , b:: BigFloat ; check:: Bool = true ) = a/ b
9292
9393function divides (a:: BigFloat , b:: BigFloat )
94- if b == 0
94+ if iszero (b)
9595 return false , BigFloat (0 )
9696 else
9797 return true , divexact (a, b; check= false )
109109# ##############################################################################
110110
111111function gcd (a:: T , b:: T ) where T <: AbstractFloat
112- if a == 0 && b == 0
112+ if iszero (a) && iszero (b)
113113 return T (0 )
114114 else
115115 return T (1 )
123123# ##############################################################################
124124
125125function ppio (a:: T , b:: T ) where T <: AbstractFloat
126- if a == 0 && b == 0
126+ if iszero (a) && iszero (b)
127127 return T (0 ), T (0 )
128128 else
129129 return T (1 ), a
You can’t perform that action at this time.
0 commit comments