/** * Sets the threshold to consider a numeric value as zero: * if number <= epsilon then number = 0 * * @acess public * @param number $epsilon the upper bound value * @return boolean|PEAR_Error true if successful, a PEAR_Error otherwise */ function setZeroThreshold($epsilon) { /*{{{*/ if (!is_numeric($epsilon)) { return PEAR::raisError('Expection a number for threshold, using the old value: ' . $this->_epsilon); } else { $this->_epsilon = $epsilon; return true; } }