It keeps concatenating my numbers into 2111 instead of 5. Why is this? I\'ve tried using parseInt with no luck. res3 btw represents a query into my database that I\'m execut
you can parse your data according to desired type as follow
dt_total_hours += parseInt(res3.fieldByName(dt_cost_per_hour));
you can also use parseFloat method as well