public function sign()
    {
        if ($this->isZero()) {
            return 0;
        }

        if ($this->isReal()) {
            return $this->value['real']->sign();
        }

        return $this->modulus()->sign();
    }
public function sign()
    {
        if ($this->isZero()) {
            return 0;
        }

        if ($this->isReal()) {
            return $this->value['real']->sign();
        }

        return $this->modulus()->sign();
    }
public function sign ( ) { if ( $ this -> isZero ( ) ) { return 0 ; } if ( $ this -> isReal ( ) ) { return $ this -> value [ 'real' ] -> sign ( ) ; } return $ this -> modulus ( ) -> sign ( ) ; }
Return the sign of this number
If Real, then return sign of real part else sign of modulus

-1 if < 0
0 if == 0
1 if > 0

@return int
Return the sign of this number If Real then return sign of real part else sign of modulus