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

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

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

		// Get the portion of the decimal part affected by the scale value
		$decimalPart = substr( $decimalPart, $scale );
		return strlen( $decimalPart ) == 1 && $decimalPart == "5";
	}
public function getDecimalIsHalf( $scale = false )
	{
		if ( ! $this->getIsDecimal() ) {
			return false;
		}

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

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

		// Get the portion of the decimal part affected by the scale value
		$decimalPart = substr( $decimalPart, $scale );
		return strlen( $decimalPart ) == 1 && $decimalPart == "5";
	}
public function getDecimalIsHalf ( $ scale = false ) { if ( ! $ this -> getIsDecimal ( ) ) { return false ; } if ( $ scale === false ) $ scale = $ this -> scale ( $ this -> _value ) ; if ( $ scale < 0 ) $ scale = $ scale = 0 ; $ decimalPart = $ this -> getDecimalPart ( ) ; if ( $ scale >= strlen ( $ decimalPart ) ) return false ; // Get the portion of the decimal part affected by the scale value
 $ decimalPart = substr ( $ decimalPart , $ scale ) ; return strlen ( $ decimalPart ) == 1 && $ decimalPart == "5" ; }
Test to see if the digit at scale + 1 is a 5
@param int $scale
@return bool
Test to see if the digit at scale + 1 is a 5