arr = [0.1, 0.2] arr.reduce((el,count)=> parseFloat((el + count).toFixed(10)));