code: function roundPrecision (x, d, places = 2) {
      return (Math.floor(x * d) / d).toFixed(places);
  }
docs: Round a number to given number of decimal divisions e.g. roundPrecision(x, 4) rounds a number to increments of 0.25