protected double computeLogFloor(double lower){
  double logFloor;
  if (this.allowNegativesFlag) {
    if (lower > 10.0) {
      logFloor=Math.log(lower) / LOG10_VALUE;
      logFloor=Math.floor(logFloor);
      logFloor=Math.pow(10,logFloor);
    }
 else     if (lower < -10.0) {
      logFloor=Math.log(-lower) / LOG10_VALUE;
      logFloor=Math.floor(-logFloor);
      logFloor=-Math.pow(10,-logFloor);
    }
 else {
      logFloor=Math.floor(lower);
    }
  }
 else {
    if (lower > 0.0) {
      logFloor=Math.log(lower) / LOG10_VALUE;
      logFloor=Math.floor(logFloor);
      logFloor=Math.pow(10,logFloor);
    }
 else {
      logFloor=Math.floor(lower);
    }
  }
  return logFloor;
}

protected double computeLogFloor ( double lower ) { double logFloor ; if ( this . allowNegativesFlag ) { if ( lower > 10.0 ) { logFloor = Math . log ( lower ) / LOG10_VALUE ; logFloor = Math . floor ( logFloor ) ; logFloor = Math . pow ( 10 , logFloor ) ; } else if ( lower < - 10.0 ) { logFloor = Math . log ( - lower ) / LOG10_VALUE ; logFloor = Math . floor ( - logFloor ) ; logFloor = - Math . pow ( 10 , - logFloor ) ; } else { logFloor = Math . floor ( lower ) ; } } else { if ( lower > 0.0 ) { logFloor = Math . log ( lower ) / LOG10_VALUE ; logFloor = Math . floor ( logFloor ) ; logFloor = Math . pow ( 10 , logFloor ) ; } else { logFloor = Math . floor ( lower ) ; } } return logFloor ; }
returns the largest ( closest to positive infinity ) double value that is not greater than the argument , is equal to a mathematical integer and satisfying the condition that log base 10 of the value is an integer ( i . e . , the value returned will be a power of 10 : 1 , 10 , 100 , 1000 , etc . ) .
