JuliaLang/julia — Issue #367: isequal is not transitive
Author: JeffBezanson
Created: 2012-02-18 07:52:51+00:00
State: open

We have

```
julia> isequal(0,0.0)
true

julia> isequal(0,-0.0)
true

julia> isequal(0.0,-0.0)
false
```

In the int,float case it's using `==`. Maybe a correct definition is:

```
isequal(a::Integer, b::Float) = (a==b) & (float(a)==b)
```

?

I know Stefan will enjoy this issue :)