self == other -> bool[permalink][rdoc][edit]self === other -> bool-
比較演算子。数値として等しいか判定します。
- [PARAM] other:
- 比較対象の数値
- [RETURN]
- self と other が等しい場合 true を返します。そうでなければ false を返します。
1 == 2 # => false 1 == 1.0 # => true
self == other -> bool[permalink][rdoc][edit]self === other -> bool比較演算子。数値として等しいか判定します。
1 == 2 # => false
1 == 1.0 # => true