Method: Complex#imaginary
- Defined in:
- complex.c
permalink #imag ⇒ Object #imaginary ⇒ Object
Returns the imaginary part.
Complex(7).imaginary #=> 0
Complex(9, -4).imaginary #=> -4
751 752 753 754 755 756 |
# File 'complex.c', line 751 VALUE rb_complex_imag(VALUE self) { get_dat1(self); return dat->imag; } |