checkForPremiseSatisfaction method

bool checkForPremiseSatisfaction(
  1. double first,
  2. double second
)

Check if first number is greater than second

Implementation

bool checkForPremiseSatisfaction(double first, double second) {
  bool premiseVal = false;
  if (first.isNaN || second.isNaN) {
    return false;
  } else {
    premiseVal = first > second;
  }
  return premiseVal;
}