Jump to content

kirby555

Members
  • Posts

    1
  • Joined

  • Last visited

Everything posted by kirby555

  1. Good afternoon admin, This morning I try to learn the Javascript through the tutorial, I found some small mistake in this tutorial. JavaScript > JS Numbers > under Precision section <script> function myFunction() { x = (0.2*10 + 0.1*10) / 10; document.getElementById("demo").innerHTML = "0.2 + 0.3 = " + x; } </script> The output will be: 0.2 + 0.3 = 0.3 Tutorial Link: http://www.w3schools.com/js/tryit.asp?filename=tryjs_inaccurate3
×
×
  • Create New...