1件ヒット
[1-1件を表示]
(0.156秒)
ライブラリ
- ビルトイン (1)
検索結果
-
Bignum
# <=>(other) -> Fixnum | nil (18607.0) -
self と other を比較して、self が大きい時に正、 等しい時に 0、小さい時に負の整数を返します。
self と other を比較して、self が大きい時に正、
等しい時に 0、小さい時に負の整数を返します。
@param other 比較対象の数値
@return -1 か 0 か 1 のいずれか
1 <=> 2 #=> -1
1 <=> 1 #=> 0
2 <=> 1 #=> 1