i()
Returns the corresponding imaginary number. Not available for complex numbers.
-42.i #=> (0-42i) 2.0.i #=> (0+2.0i)
static VALUE num_imaginary(VALUE num) { return rb_complex_new(INT2FIX(0), num); }
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル