るりまサーチ (Ruby 3.2)

最速Rubyリファレンスマニュアル検索!
1件ヒット [1-1件を表示] (0.101秒)
トップページ > 種類:インスタンスメソッド[x] > クエリ:===[x] > バージョン:3.2[x] > クラス:BigDecimal[x]

別のキーワード

  1. _builtin ===
  2. date ===
  3. ipaddr ===
  4. pathname ===
  5. bigdecimal ===

ライブラリ

検索結果

BigDecimal#===(other) -> bool (45307.0)

self が other と等しい場合に true を、そうでない場合に false を返します。

...self が other と等しい場合に true を、そうでない場合に false を返します。

それぞれの値は BigDecimal#coerce で変換して比較される場合があります。

//emlist[][ruby]{
require 'bigdecimal'
BigDecimal
('1.0') == 1.0 # => true
//}...