I have javascript function that automatically adds input fields together, but adding numbers like 1.35 + 1.35 + 1.35 gives me an output of 4.050000000000001, just as an exam
var num = 4.050000000000001; num = num.toFixed(2);
toFixed will round up depending on how many digits after the decimal you're looking for.
toFixed