public static Number max(Number a,Number b){
  if (isFloatingPoint(a) || isFloatingPoint(b)) {
    return Math.max(a.doubleValue(),b.doubleValue());
  }
 else {
    return Math.max(a.longValue(),b.longValue());
  }
}

public static Number max ( Number a , Number b ) { if ( isFloatingPoint ( a ) || isFloatingPoint ( b ) ) { return Math . max ( a . doubleValue ( ) , b . doubleValue ( ) ) ; } else { return Math . max ( a . longValue ( ) , b . longValue ( ) ) ; } }
returns the maximum value of two numbers .
