method

i

v2_5_5 - Show latest stable - Class: Numeric
i()
public

Returns the corresponding imaginary number. Not available for complex numbers.

-42.i  #=> (0-42i)
2.0.i  #=> (0+2.0i)