is_eqv(obj1, obj2)
Return true
if obj1
and obj2
are equivalent,
otherwise return false
.
Is_eqv
is similar to is_eq
except that it return
true
for two numbers that are considered equal by the predicate
number_is_eq
. There is one exception for this rule though –
is_eqv
will return false
for is_eqv(+0.0, -0.0)
,
whereas number_is_eq
will return true
. This provides a way to distinguish
between positive and negative zeros.
is_eqv(38492948403840248034824037496494864917349749247947249749327482479,
38492948403840248034824037496494864917349749247947249749327482479)
// true