public function getIntegralPart() : string
    {
        if ($this->scale === 0) {
            return $this->value;
        }

        $value = $this->getUnscaledValueWithLeadingZeros();

        return \substr($value, 0, -$this->scale);
    }
public function getIntegralPart() : string
    {
        if ($this->scale === 0) {
            return $this->value;
        }

        $value = $this->getUnscaledValueWithLeadingZeros();

        return \substr($value, 0, -$this->scale);
    }
public function getIntegralPart ( ) : string { if ( $ this -> scale === 0 ) { return $ this -> value ; } $ value = $ this -> getUnscaledValueWithLeadingZeros ( ) ; return \ substr ( $ value , 0 , - $ this -> scale ) ; }
Returns a string representing the integral part of this decimal number.

Example: `-123.456` => `-123`.

@return string
Returns a string representing the integral part of this decimal number .