0

I'am trying to do addition in js:

  • but i am not getting the right answers.
  • i should get the values as 5444.54.
  • but i am getting as 4444.541000.
  • can you guys tell me how to fix it.
  • providing the code below

    console.log("sportsFreeKick--->" + JSON.stringify(data.balance.sportsGoals)); // 1000

    console.log("sportsTime--->" + sportsTime); // 4444.54

    console.log(sportsTime + JSON.stringify(data.balance.sportsGoals)); // 4444.541000

BrTkCa
  • 4,703
  • 3
  • 24
  • 45

0 Answers0