public function Compare( $number, $scale = false )
	{
		if ( ! is_numeric( $number ) )
		{
			if ( ! $number instanceof DecimalValue && ! $number instanceof Integer )
			{
				return false;
			}

			$number = $number->getValue();
		}

		if ( $scale === false )
		{
			$scale = max( $this->getScale(), $this->scale( $number ) );
		}

		return bccomp( $this->_value, $number, $scale );
	}
public function Compare( $number, $scale = false )
	{
		if ( ! is_numeric( $number ) )
		{
			if ( ! $number instanceof DecimalValue && ! $number instanceof Integer )
			{
				return false;
			}

			$number = $number->getValue();
		}

		if ( $scale === false )
		{
			$scale = max( $this->getScale(), $this->scale( $number ) );
		}

		return bccomp( $this->_value, $number, $scale );
	}
public function Compare ( $ number , $ scale = false ) { if ( ! is_numeric ( $ number ) ) { if ( ! $ number instanceof DecimalValue && ! $ number instanceof Integer ) { return false ; } $ number = $ number -> getValue ( ) ; } if ( $ scale === false ) { $ scale = max ( $ this -> getScale ( ) , $ this -> scale ( $ number ) ) ; } return bccomp ( $ this -> _value , $ number , $ scale ) ; }
Compares this number with another number
@param string $number
@param int $scale
@return int 0 if the number is the same as this number, 1 if this number is larger than the supplied number, -1 otherwise.
Compares this number with another number