title: Sould I store price as decimal or Integer in Mysql?
body: <p>I'm currently using <code>decimal</code> to store price data (store $4.2 as 4.20), but it seems having some difficults to comparing equality, i.e. need to calculate the different between 2 numbers(<code>abs(number1 - number 2) &lt; 0.01</code>) rather than using <code>number1 == number2</code></p>
  
  <p>So I'm wondering if it will be better to store price as integers, say store $4.2 as 420.</p>
  
  <p>Thanks.</p>