102件ヒット
[101-102件を表示]
(0.155秒)
ライブラリ
- ビルトイン (102)
クラス
キーワード
- % (2)
- * (1)
- ** (1)
- + (1)
- +@ (1)
- -@ (1)
-
/ (3) - <=> (1)
- [] (3)
- abs (2)
- abs2 (2)
- angle (2)
- arg (2)
- ceil (2)
- clone (1)
- coerce (1)
- conj (1)
- conjugate (1)
- denominator (1)
- div (1)
- divmod (5)
- downto (2)
- dup (1)
- eql? (1)
- fdiv (4)
- floor (3)
- i (1)
- imag (2)
- imaginary (2)
- integer? (1)
- magnitude (2)
- modulo (2)
- negative? (1)
- nonzero? (1)
- numerator (1)
- owner (1)
- phase (2)
- polar (2)
- positive? (1)
- pow (2)
- quo (3)
- real (2)
- real? (2)
- rect (2)
- rectangular (2)
- remainder (3)
- round (2)
- size (1)
- step (6)
- times (2)
-
to
_ c (1) -
to
_ i (1) -
to
_ int (1) - truncate (3)
- upto (2)
- zero? (1)
検索結果
-
Rational
# quo(other) -> Rational | Float (24322.0) -
商を計算します。
商を計算します。
@param other 自身を割る数
other に Float を指定した場合は、計算結果を Float で返します。
//emlist[例][ruby]{
r = Rational(3, 4)
r / 2 # => (3/8)
r / 2.0 # => 0.375
r / 0.5 # => 1.5
r / Rational(1, 2) # => (3/2)
r / 0 # => ZeroDivisionError
//}
@raise ZeroD... -
UnboundMethod
# owner -> Class | Module (24322.0) -
このメソッドが定義されている class か module を返します。
このメソッドが定義されている class か module を返します。
//emlist[例][ruby]{
Integer.instance_method(:to_s).owner # => Integer
Integer.instance_method(:to_c).owner # => Numeric
Integer.instance_method(:hash).owner # => Kernel
//}