protected function _decimal()
    {
        $sign = 1;

        if ($this->value < 0) {
            $sign = -1;
        }

        return new N($sign * (abs($this->value) - floor(abs($this->value))));
    }
protected function _decimal()
    {
        $sign = 1;

        if ($this->value < 0) {
            $sign = -1;
        }

        return new N($sign * (abs($this->value) - floor(abs($this->value))));
    }
protected function _decimal ( ) { $ sign = 1 ; if ( $ this -> value < 0 ) { $ sign = - 1 ; } return new N ( $ sign * ( abs ( $ this -> value ) - floor ( abs ( $ this -> value ) ) ) ) ; }
Gets decimal part.

Gets decimal part of current number .

Example:

$n = new N(3.14);
echo $n->decimal; // '0.14'

@see N::$decimal The magic getter version `N::$decimal`
@return N
Gets decimal part .