module.exports = ngModule => {
  function summary() {
    const units = ['k', 'M', 'B', 'T'];
    return (input, precision) => {
      if (typeof input === 'undefined' || isNaN(input)) {
        return input;
      }
      for (let i = units.length - 1; i >= 0; i--) {
        const decimal = Math.pow(1000, i + 1);

        if (input <= -decimal || input >= decimal) {
          return (input / decimal).toFixed(precision) + units[i];
        }
      }
      return input;
    };
  }

  // inject dependencies here
  summary.$inject = [];

  ngModule.filter('summary', summary);

  if (ON_TEST) {
    require('./summary.filter.spec.js')(ngModule);
  }
};

@@ -106,17 +106,20 @@
 (input, 
-p
+optP
 recision
@@ -125,16 +125,98 @@
 n) =%3E %7B%0A
+      const precision = (typeof optPrecision !== 'undefined' ? optPrecision : 0);%0A
       if
@@ -546,24 +546,43 @@
 return input
+.toFixed(precision)
 ;%0A    %7D;%0A  %7D

change summary filter to set precision on all inputs