public static Double divide(Long number, long divisor) {
    if (divisor == 0) {
      return null;
    }
    return number / (double) divisor;
  }
VectorPTFEvaluatorHelper is a helper class for vector ptf operations.
ql/src/java/org/apache/hadoop/hive/ql/exec/vector/ptf/VectorPTFEvaluatorHelper.java