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
91
91
divexact (a:: Rational{BigInt} , b:: BigFloat ; check:: Bool = true ) = a/ b
92
92
93
93
function divides (a:: BigFloat , b:: BigFloat )
94
- if b == 0
94
+ if iszero (b)
95
95
return false , BigFloat (0 )
96
96
else
97
97
return true , divexact (a, b; check= false )
109
109
# ##############################################################################
110
110
111
111
function gcd (a:: T , b:: T ) where T <: AbstractFloat
112
- if a == 0 && b == 0
112
+ if iszero (a) && iszero (b)
113
113
return T (0 )
114
114
else
115
115
return T (1 )
123
123
# ##############################################################################
124
124
125
125
function ppio (a:: T , b:: T ) where T <: AbstractFloat
126
- if a == 0 && b == 0
126
+ if iszero (a) && iszero (b)
127
127
return T (0 ), T (0 )
128
128
else
129
129
return T (1 ), a
You can’t perform that action at this time.
0 commit comments