public function getIsDecimalEven( $precision = false )
	{
		if ( ! $this->getIsDecimal() ) {
			return false;
		}

		if ( $precision === false ) $precision = $this->scale( $this->_value );
		if ( $precision < 0 ) $precision = $precision = 0;

		$decimalPart = $this->getDecimalPart();
		if ( $precision >= strlen( $decimalPart ) ) return false;

		// Get the portion of the decimal part affected by the scale value
		$decimalPart = substr( $decimalPart, $precision );
		return $decimalPart[0] % 2 === 0;
	}
public function getIsDecimalEven( $precision = false )
	{
		if ( ! $this->getIsDecimal() ) {
			return false;
		}

		if ( $precision === false ) $precision = $this->scale( $this->_value );
		if ( $precision < 0 ) $precision = $precision = 0;

		$decimalPart = $this->getDecimalPart();
		if ( $precision >= strlen( $decimalPart ) ) return false;

		// Get the portion of the decimal part affected by the scale value
		$decimalPart = substr( $decimalPart, $precision );
		return $decimalPart[0] % 2 === 0;
	}
public function getIsDecimalEven ( $ precision = false ) { if ( ! $ this -> getIsDecimal ( ) ) { return false ; } if ( $ precision === false ) $ precision = $ this -> scale ( $ this -> _value ) ; if ( $ precision < 0 ) $ precision = $ precision = 0 ; $ decimalPart = $ this -> getDecimalPart ( ) ; if ( $ precision >= strlen ( $ decimalPart ) ) return false ; // Get the portion of the decimal part affected by the scale value
 $ decimalPart = substr ( $ decimalPart , $ precision ) ; return $ decimalPart [ 0 ] % 2 === 0 ; }
Returns true if the digit at the required level of precision is even
@param string $precision
@return bool
Returns true if the digit at the required level of precision is even