title: MySQL - Value of 1 in DECIMAL(2, 2) is coming out as 0.99
body: <p>I am storing monetary values, and I read that FLOAT has internal rounding problems (although I can't say I ever noticed any problems) and that it is better to use DECIMAL.</p>
  
  <p>So I have been using DECIMAL but when I try to set the value to 1 it is stored as 0.99.  I will be using that value in JavaScript at some point, and I know that my JS calculations will be wrong because it is 0.99 not 1.00.</p>
  
  <p>Why is it doing that and should I just use FLOAT?</p>