instance method Complex#inspect

inspect -> String[permalink][rdoc]

自身を人間が読みやすい形の文字列表現にして返します。



Complex(2).inspect                       # => "(2+0i)"
Complex('-8/6').inspect                  # => "((-4/3)+0i)"
Complex('1/2i').inspect                  # => "(0+(1/2)*i)"
Complex(0, Float::INFINITY).inspect      # => "(0+Infinity*i)"
Complex(Float::NAN, Float::NAN).inspect  # => "(NaN+NaN*i)"