src/Chippyash/Type/Number/Rational/AbstractRationalType.php
public function asComplex()
    {
        return new ComplexType(
            new RationalType(clone $this->numerator(), clone $this->denominator()),
            new RationalType(new IntType(0), new IntType(1))
        );
    }
public function asComplex()
    {
        return new ComplexType(
            new RationalType(clone $this->numerator(), clone $this->denominator()),
            new RationalType(new IntType(0), new IntType(1))
        );
    }
public function asComplex ( ) { return new ComplexType ( new RationalType ( clone $ this -> numerator ( ) , clone $ this -> denominator ( ) ) , new RationalType ( new IntType ( 0 ) , new IntType ( 1 ) ) ) ; }
Return the number as a Complex number i.e. n+0i

@return \Chippyash\Type\Number\Complex\ComplexType
Return the number as a Complex number i . e . n + 0i