I have a data table and I have a footer which displays the sum of every column. Although the values above the footer are rounded to two decimal places, some of the values in the footer are not rounded to two decimal places.[Screenshot](https://i.stack.imgur.com/AXN7x.jpg) My javascript for footercallback:

```
"footerCallback": function(row, data, start, end, display) {
        var api = this.api();

        api.columns('.sum', {
          page: 'current'
        }).every(function() {
          var sum = this
            .data()
            .reduce(function(a, b) {
              var x = parseFloat(a);
              var y = parseFloat(b);
              return x + y;
            }, 0);
          console.log(sum); //alert(sum);
          $(this.footer()).html(sum);
        });
      }

```

Please help to resolve this.

Thanks