Ad
  • Custom User Avatar

    Can someone help me please? I'm new here and I cant increase the time(t) with 0.1
    function maxBall(v0) {
    v0=v01000/3600
    var h=0, t=0, g=9.81, tmax=2
    v0/g, hmax=0
    for(t=0;t<=tmax;t+=0.1)
    {
    console.log(t)
    }
    }

    When ı run this code it gives me this
    0
    0.1
    0.2
    0.30000000000000004
    0.4
    0.5
    0.6
    0.7
    0.7999999999999999
    0.8999999999999999
    0.9999999999999999
    1.0999999999999999

    why it isn't give me this: 0.1 0.2 0.3 0.4 0.5 .....

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution