lib/utils.js
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;
}
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;
}
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 ; }
limit decimal numbers to given scale
Not used .fixedTo because that will break with big numbers
limit decimal numbers to given scale Not used . fixedTo because that will break with big numbers