toFixed(0) or Math.ciel error?
<p>I seem to have a slight problem.</p>

<p>This is my code:</p>

<pre><code>var rc1FrontMM = Number(Apperyio("rc1FrontMM").val());
var rc1RearMM = Number(Apperyio("rc1RearMM").val());
var rc1TyreRatio1 = Number(Apperyio("rc1TyreRatio1").val());
var rc1TyreRatio2 = Number(Apperyio("rc1TyreRatio2").val());

var rc1TyreRatio1 = rc1RearMM / rc1FrontMM;
var rc1TyreRatio2 = rc1RearMM / rc1FrontMM;

Apperyio('rc1TyreRatio1').val(rc1TyreRatio1.toFixed(2));
Apperyio('rc1TyreRatio2').val(rc1TyreRatio2.toFixed(2));
</code></pre>

<p>When I test, the returned result (screenshot attached) is "0.00" when if we used Rear: 6165 &amp; Front: 4745, the result should be: 1.299262381454162, but with toFixed(2) it should be: 1.29, not 0.00</p>

<p>Any idea's what has gone wrong?</p>

<p><a href="https://i.stack.imgur.com/JeMJm.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/JeMJm.png" alt="the problem"></a></p>