1267件ヒット
[1201-1267件を表示]
(0.056秒)
クラス
キーワード
- % (24)
- * (12)
- ** (12)
- + (12)
- +@ (12)
- - (12)
- -@ (12)
-
/ (47) - <=> (12)
- [] (30)
- abs (24)
- abs2 (24)
- angle (24)
- arg (24)
- begin (7)
- ceil (24)
- clone (12)
- coerce (12)
- conj (12)
- conjugate (12)
- denominator (12)
- div (12)
- divmod (42)
- downto (24)
- dup (12)
- end (7)
- eql? (12)
- fdiv (30)
- finite? (9)
- first (14)
- floor (36)
- i (12)
- imag (24)
- imaginary (24)
- infinite? (9)
- integer? (12)
- last (14)
- magnitude (24)
- modulo (24)
- negative? (10)
- nonzero? (12)
- numerator (12)
- owner (12)
- phase (24)
- polar (24)
- positive? (10)
- pow (24)
- quo (36)
- real (24)
- real? (24)
- rect (24)
- rectangular (24)
- remainder (27)
- round (24)
- size (11)
- step (100)
- times (24)
-
to
_ c (12) -
to
_ i (12) -
to
_ int (12) - truncate (36)
- upto (24)
- zero? (12)
検索結果
先頭5件
-
Object
# dup -> object (9.0) -
オブジェクトの複製を作成して返します。
...lone や dup は浅い(shallow)コピーであることに注意してください。後述。
TrueClass, FalseClass, NilClass, Symbol, そして Numeric クラスのインスタンスなど一部のオブジェクトは複製ではなくインスタンス自身を返します。
@param freeze tru... -
Range
# size -> Integer | Float :: INFINITY | nil (9.0) -
...範囲内の要素数を返します。始端、終端のいずれかのオブジェクトが
Numeric のサブクラスのオブジェクトではない場合には nil を返します。
//emlist[例][ruby]{
(10..20).size # => 11
("a".."z").size # => nil
(-Float::INFINITY..Float::INFINITY).... -
Rational
# / (other) -> Rational | Float (9.0) -
商を計算します。
...//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 ZeroDivisionError other が 0 の時に発生します。
@see Numeric#quo... -
Rational
# quo(other) -> Rational | Float (9.0) -
商を計算します。
...//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 ZeroDivisionError other が 0 の時に発生します。
@see Numeric#quo... -
UnboundMethod
# owner -> Class | Module (9.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
//}... -
Integer
# pow(other , modulo) -> Integer (5.0) -
算術演算子。冪(べき乗)を計算します。
算術演算子。冪(べき乗)を計算します。
@param other 二項演算の右側の引数(対象)
@param modulo 指定すると、計算途中に巨大な値を生成せずに (self**other) % modulo と同じ結果を返します。
@return 計算結果
@raise TypeError 2引数 pow で Integer 以外を指定した場合に発生します。
@raise RangeError 2引数 pow で other に負の数を指定した場合に発生します。
//emlist[][ruby]{
2 ** 3 # => 8
2 ** 0 # => 1
0 ** 0 # => 1
...算術演算子。冪(べき乗)を計算します。
@param other 二項演算の右側の引数(対象)
@param modulo 指定すると、計算途中に巨大な値を生成せずに (self**other) % modulo と同じ結果を返します。
@return 計算結果
@raise TypeError 2引数 pow で Integer 以外を指定した場合に発生します。
@raise RangeError 2引数 pow で other に負の数を指定した場合に発生します。
@raise ArgumentError 計算結果が巨大になりすぎる場合に発生します。
//emlist[][ruby]...