code: function calculateMaxValue(precision, scale) {
    const arr = _.fill(Array(precision), '9');
  
    if (scale) {
      arr.splice(precision - scale, 0, '.');
    }
  
    return parseFloat(arr.join(''));
  }
docs: Calculates the max absolute value for the given precision and scale.
  @param {number} precision the number of total digits in value, including decimals.
  @param {number} [scale] the numver of decimal digits in value.
  @return {number}
  @private