public static Number floor(Number a){
  if (isFloatingPoint(a)) {
    return Math.floor(a.doubleValue());
  }
 else {
    return a.longValue();
  }
}

public static Number floor ( Number a ) { if ( isFloatingPoint ( a ) ) { return Math . floor ( a . doubleValue ( ) ) ; } else { return a . longValue ( ) ; } }
returns the largest integer value less than or equal to the given number .
