method

i

Importance_1
Ruby latest stable (v2_5_5) - 0 notes - Class: Numeric
i() public

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

-42.i  #=> (0-42i)
2.0.i  #=> (0+2.0i)
Show source
Register or log in to add new notes.