title: How to make my javascript calculator calculate decimal numbers?
body: <p>Currently my simple javascript calculator is capable of calculating whole numbers. However it is incapable of doing so with decimal numbers like 3,4 or 9,2 etc...
  getal1 &amp; getal2 stand for number1 &amp; number2. The functions are plus, minus, multiply, and divide respectively.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>function plus()
  {
   var getal1 = document.getElementById('getal1').value;
   var getal2 = document.getElementById('getal2').value; 
   document.getElementById('resultaat').value=parseInt(getal1) +  parseInt(getal2);
   document.form1.submit();
  }
    
  function min()
  {
   var getal1 = document.getElementById('getal1').value;
   var getal2 = document.getElementById('getal2').value; 
   document.getElementById('resultaat').value=parseInt(getal1) - parseInt(getal2);
   document.form1.submit();
  }
    
  function keer()
  {
   var getal1 = document.getElementById('getal1').value;
   var getal2 = document.getElementById('getal2').value; 
   document.getElementById('resultaat').value=parseInt(getal1) * parseInt(getal2);
   document.form1.submit();
  }
    
  function delen()
  {
   var getal1 = document.getElementById('getal1').value;
   var getal2 = document.getElementById('getal2').value; 
  
   document.getElementById('resultaat').value=parseInt(getal1) / parseInt(getal2);
   document.form1.submit();
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;!doctype html&gt;
  &lt;html&gt;
   &lt;head&gt;
    &lt;title&gt;
     Oefening calculator
    &lt;/title&gt;
    &lt;script src="Javascript.js"&gt;
    &lt;/script&gt;
    &lt;link rel="stylesheet" type="text/css" href="StyleSheet.css"&gt;
   &lt;/head&gt;
    &lt;body&gt;
    
     &lt;div id="calculator"&gt;
     
     &lt;!-- Invoervelden getal1 en getal2 --&gt;
      &lt;form id="point1"&gt;
       &lt;label for="getal1"&gt;
        Geef 1e getal :
       &lt;/label&gt;
       &lt;input type="number" name="getal1" id="getal1"&gt;
      &lt;br /&gt;
       &lt;label for="getal2"&gt;
        Geef 2e getal :
       &lt;/label&gt;
       &lt;input type="number" name="getal2" id="getal2"&gt;
      &lt;/form&gt;
      
     &lt;!-- De som knoppen --&gt;
     &lt;div id="knoppen"&gt;
      &lt;button onClick="plus()"&gt;
       +
      &lt;/button&gt;
      &lt;button onClick="min()"&gt;
       -
      &lt;/button&gt;
      &lt;button onClick="keer()"&gt;
       x
      &lt;/button&gt;
      &lt;button onClick="delen()"&gt;
       /
      &lt;/button&gt;
     &lt;/div&gt;
      &lt;br /&gt;
      
     &lt;!-- Het resultaat tekstblok --&gt;
      &lt;form id="point3"&gt;
       &lt;label for="resultaat"&gt;
        Resultaat
       &lt;/label&gt;
       &lt;input type="number" name="resultaat" id="resultaat"&gt;
      &lt;/form&gt;
      
     &lt;/div&gt;
     
    &lt;/body&gt;
  &lt;/html&gt;</code></pre>
  </div>
  </div>
  </p>