るりまサーチ (Ruby 3.1)

最速Rubyリファレンスマニュアル検索!
1件ヒット [1-1件を表示] (0.084秒)
トップページ > クラス:Float[x] > クエリ:-[x] > ライブラリ:ビルトイン[x] > クエリ:hash[x] > バージョン:3.1[x]

別のキーワード

  1. _builtin -
  2. open-uri open
  3. irb/input-method new
  4. irb/input-method gets
  5. matrix -

検索結果

Float#hash -> Integer (54667.0)

ハッシュ値を返します。

...ハッシュ値を返します。

//emlist[例][ruby]{
pi1 = 3.14
pi2 = 3.14
pi3 = 3.1415

pi1.hash # => 335364239
pi2.hash # => 335364239
pi3.hash # => 420540030
//}...