src/datatypes/Float.js
function calculateMaxValue(precision, scale) {
  const arr = _.fill(Array(precision), '9');

  if (scale) {
    arr.splice(precision - scale, 0, '.');
  }

  return parseFloat(arr.join(''));
}
function calculateMaxValue(precision, scale) {
  const arr = _.fill(Array(precision), '9');

  if (scale) {
    arr.splice(precision - scale, 0, '.');
  }

  return parseFloat(arr.join(''));
}
function calculateMaxValue ( precision , scale ) { const arr = _ . fill ( Array ( precision ) , '9' ) ; if ( scale ) { arr . splice ( precision - scale , 0 , '.' ) ; } return parseFloat ( arr . join ( '' ) ) ; }
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
Calculates the max absolute value for the given precision and scale .