title: julia floating point compare for zero
body: <pre><code>julia&gt; r
  3×3 Array{Float64,2}:
   -1.77951  -0.79521   -2.57472
    0.0       0.630793   0.630793
    0.0       0.0       -1.66533e-16
  
  julia&gt; sort(abs(diag(r)))[1]
  1.6653345369377348e-16
  
  julia&gt; isequal(floor(sort(abs(diag(r)))[1]),0)
  true
  </code></pre>
  
  <p><strong>But this is not right</strong></p>
  
  <pre><code>julia&gt; isequal(sort(abs(diag(r)))[1],convert(AbstractFloat,0.0))
  false
  </code></pre>
  
  <p>Is there a function in Julia to check for floating point equivalent to zero?</p>