315件ヒット
[301-315件を表示]
(0.214秒)
キーワード
- * (11)
- ** (11)
- + (11)
- - (11)
- -@ (8)
-
/ (11) - <=> (11)
- == (11)
- abs (8)
- ceil (11)
- coerce (11)
- convert (11)
- denominator (11)
- fdiv (11)
- floor (11)
- hash (11)
- inspect (11)
- magnitude (8)
-
marshal
_ dump (11) - negative? (8)
- numerator (11)
- positive? (8)
- quo (11)
- rationalize (11)
- round (11)
-
to
_ f (11) -
to
_ i (11) -
to
_ r (11) -
to
_ s (11) - truncate (11)
検索結果
-
Rational
# coerce(other) -> Array (17015.0) -
自身と other が同じクラスになるよう、自身か other を変換し [other, self] という 配列にして返します。
...other が同じクラスになるよう、自身か other を変換し [other, self] という
配列にして返します。
@param other 比較または変換するオブジェクト
//emlist[例][ruby]{
Rational(1).coerce(2) # => [(2/1), (1/1)]
Rational(1).coerce(2.2) # => [2.2, 1.0]
//}... -
Rational
# hash -> Integer (17003.0) -
自身のハッシュ値を返します。
自身のハッシュ値を返します。
@return ハッシュ値を返します。
@see Object#hash