Method: Complex#to_c

Defined in:
complex.c

#to_cself

Returns self.

Complex(2).to_c      #=> (2+0i)
Complex(-8, 6).to_c  #=> (-8+6i)

Returns:

  • (self)
[View source]

1688
1689
1690
1691
1692
# File 'complex.c', line 1688

static VALUE
nucomp_to_c(VALUE self)
{
    return self;
}