title: Simple math with decimals in PHP
body: <p>This is killing me! I've never had so much trouble and I can't figure out what I'm doing wrong here.</p>
  
  <p>If I have a number, say 2.32, and I want to do math with it it won't work out. The very simplest example:</p>
  
  <pre><code>$income = $commission; //Commission is 2.32, retrieved from XML
  echo "income: $income&lt;br&gt;";
  $income100 = $income*100;
  echo "income100: $income100&lt;br&gt;";
  </code></pre>
  
  <p>The result I get is:</p>
  
  <pre><code>income: 2.32
  income100: 200
  </code></pre>
  
  <p>How can I use a decimal number accurately with math without it changing it?</p>
  
  <p>Thanks so much!</p>