title: Is Math.ceil() & Math.round() supported on IE8?
body: <p>I have a Javascript function that calculates a value and re-inserts the value into a <code>&lt;td&gt;</code> while also injecting the value into a hidden <code>&lt;input&gt;</code>.</p>
  
  <p>This is my function:</p>
  
  <pre><code>$("input[name^='policies']:checkbox").change(function() {
      var el = $(this);
  
      if (el.is(":checked")) {
          no_policies++;
      }
  
      if (el.is(":not(:checked)")) {
          no_policies--;
      }
  
      subscription = no_policies*policy_cost;
      first_payment = Math.ceil(subscription+no_policies*(policy_cost/days_month)*days_left).toFixed(2);
  
      alert(first_payment);
  
      $("td#first_payment").text("R "+first_payment);
      $("input#first_payment_txt").val(first_payment);
      $("td#subscription").text("R "+subscription.toFixed(2));    
  });
  </code></pre>
  
  <p>Everything works on IE8 up until this statement:</p>
  
  <pre><code>first_payment = Math.ceil(subscription+no_policies*(policy_cost/days_month)*days_left).toFixed(2);
  </code></pre>
  
  <p>I suspect IE8 is having trouble with <code>Math.ceil</code>, is that true? Also, is there any other function/method I can use to circumvent this?</p>
  
  <p>Thanks in advance.</p>