mostPrecise static method

PrecisionModel mostPrecise(
  1. PrecisionModel pm1,
  2. PrecisionModel pm2
)

Determines which of two {@link PrecisionModel}s is the most precise (allows the greatest number of significant digits).

@param pm1 a PrecisionModel @param pm2 a PrecisionModel @return the PrecisionModel which is most precise

Implementation

static PrecisionModel mostPrecise(PrecisionModel pm1, PrecisionModel pm2) {
  if (pm1.compareTo(pm2) >= 0) return pm1;
  return pm2;
}