I am using the toFixed() method with 4 numbers directly, not using varibales to hold the numbers. The code doesn't run. It is curious because depending on what numbers I write the code run or doesn't.
<script>
document.write (-5.toFixed(2) + "<br><br>");
document.write (-3.286.toFixed(2) + "<br><br>");
document.write (55.3.toFixed(2) + "<br><br>");
document.write (226.32578.toFixed(2) + "<br><br>");
</script>
does anyone know why sometimes it runs and sometimes not depending on the numbers you enter?
Thanks