title: Proper way to compare decimal values in RSpec?
body: <p>I have this spec that checks for the expected number:</p>
  <pre><code>  expect(animal_cost).to eq(0.7771118644067795e5)
  </code></pre>
  <p>I get an error that says:</p>
  <pre><code>  expected: 77711.18644067795
          got: 0.7771118644067795e5
  </code></pre>
  <p>As you can see, the number I got is the same as the one I expected so I'm confused why this is failing. How can I set the spec?</p>
  <p><code>animal_cost.class</code> is a BigDecimal.</p>