code: function limitToScale(numStr, scale, fixedDecimalScale) {
    var str = '';
    var filler = fixedDecimalScale ? '0' : '';
  
    for (var i = 0; i <= scale - 1; i++) {
      str += numStr[i] || filler;
    }
  
    return str;
  }
docs: limit decimal numbers to given scale
  Not used .fixedTo because that will break with big numbers