title: How can I parse a string as an integer and keep decimal places if they are zeros?
body: <p>I have these strings: "59.50" &amp; "30.00"</p>
  
  <p>What I need to do is convert them to integers but keep the trailing zeros at the end to effectively return: </p>
  
  <pre><code>59.50
  30.00
  </code></pre>
  
  <p>I've tried:</p>
  
  <pre><code>Math.round(59.50 * 1000) / 1000
  Math.round(30.00 * 1000) / 1000
  </code></pre>
  
  <p>but ended up with </p>
  
  <pre><code>59.5
  30
  </code></pre>
  
  <p>I'm assuming I need to use a different method than Math.round as this automatically chops off trailing zeros.</p>
  
  <p>I need to keep these as integers as they need to be multiplied with other integers and keep two decimals points. T thought this would be fairly straight forward but after a lot of searching I can't seem to find a solution to exactly what I need.</p>
  
  <p>Thanks!</p>