Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Adding two numbers issue Reply To: Adding two numbers issue

#151743
Alen
Participant

I’ve made some changes. Using parseFloat() in case you get floating point numbers: 2.45 + 4.56 for example… parseInt rounds the total, not what we want… we want precision.

So: http://codepen.io/alenabdula/pen/JBdaF