instance method Complex#==
self == other -> bool
-
数値として等しいか判定します。
- [PARAM] other:
- 自身と比較する数値
例:
Complex(2, 1) == Complex(1) # => false Complex(1, 0) == Complex(1) # => true Complex(1, 0) == 1 # => true
class Complex
self == other -> bool
数値として等しいか判定します。
例:
Complex(2, 1) == Complex(1) # => false Complex(1, 0) == Complex(1) # => true Complex(1, 0) == 1 # => true