2074件ヒット
[1-100件を表示]
(0.065秒)
ライブラリ
- ビルトイン (1316)
- bigdecimal (84)
-
bigdecimal
/ jacobian (24) - csv (12)
- mathn (13)
- matrix (132)
- mkmf (24)
-
net
/ ftp (24) -
net
/ http (7) - openssl (72)
- optparse (144)
- psych (19)
- securerandom (8)
- socket (96)
クラス
- BigDecimal (84)
- Bignum (12)
- CSV (12)
- Complex (144)
-
Enumerator
:: ArithmeticSequence (49) - Fixnum (9)
- Float (48)
- Integer (288)
- Matrix (84)
-
Matrix
:: LUPDecomposition (24) -
Net
:: FTP (24) -
Net
:: HTTP (7) - Numeric (611)
- Object (12)
-
OpenSSL
:: ASN1 :: NumericString (24) - OptionParser (144)
- Range (12)
- Rational (28)
- Socket (48)
- Time (53)
- Vector (12)
モジュール
- GC (24)
- Jacobian (24)
- Kernel (24)
- Math (8)
-
OpenSSL
:: ASN1 (36) - Psych (19)
- SecureRandom (8)
-
Socket
:: Constants (48)
キーワード
- % (36)
- * (48)
- ** (16)
- + (12)
- +@ (12)
- - (12)
- -@ (12)
-
/ (84) -
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (12) - <=> (12)
-
AI
_ NUMERICHOST (24) -
AI
_ NUMERICSERV (24) - ArithmeticSequence (7)
- Complex (12)
- Matrix (12)
-
NEWS for Ruby 2
. 1 . 0 (12) -
NEWS for Ruby 2
. 3 . 0 (10) -
NEWS for Ruby 3
. 0 . 0 (5) -
NI
_ NUMERICHOST (24) -
NI
_ NUMERICSERV (24) - NUMERICSTRING (12)
- Numeric (12)
- NumericString (36)
- Ruby用語集 (12)
- [] (30)
- abs (24)
- abs2 (24)
- alphanumeric (8)
- angle (12)
- arg (12)
- at (53)
- begin (7)
- bigdecimal (12)
- ceil (24)
-
check
_ signedness (24) - clone (12)
- coerce (24)
- conj (12)
- conjugate (12)
- denominator (12)
- det (24)
- determinant (24)
- dfdxi (12)
- div (24)
- divmod (42)
- downto (24)
- end (7)
- eql? (12)
- fdiv (30)
- finite? (9)
- first (14)
- floor (36)
- imag (24)
- imaginary (24)
- infinite? (9)
- integer? (12)
- jacobian (12)
- last (14)
- magnitude (24)
- matrix (12)
- modulo (36)
- negative? (10)
- new (24)
- nonzero? (12)
- numerator (12)
- on (144)
-
open
_ timeout (12) - phase (12)
- polar (24)
- positive? (10)
- pow (24)
- quo (48)
-
read
_ timeout (12) - real (24)
- real? (36)
- rect (24)
- rectangular (24)
- remainder (39)
- round (24)
- rsqrt (4)
-
ruby 1
. 6 feature (12) -
ruby 1
. 8 . 4 feature (12) -
safe
_ load (19) - size (12)
- sqrt (4)
- stat (24)
- step (100)
- table (12)
- times (24)
-
to
_ c (12) -
to
_ i (12) -
to
_ int (12) - truncate (36)
- upto (24)
-
write
_ timeout (7) - zero? (12)
検索結果
先頭5件
-
Numeric
# i -> Complex (27149.0) -
Complex(0, self) を返します。
...Complex(0, self) を返します。
ただし、Complex オブジェクトでは利用できません。
//emlist[例][ruby]{
10.i # => (0+10i)
-10.i # => (0-10i)
(0.1).i # => (0+0.1i)
Rational(1, 2).i # => (0+(1/2)*i)
//}... -
Numeric
# infinite? -> nil (18206.0) -
常に nil を返します。 自身が Float かComplex、もしくはそのサブクラスのインスタンスの場合は、self の絶対値が負の無限大の場合に-1を、正の無限大の場合に1を、有限値の場合に nil を返します。
...il を返します。
自身が Float かComplex、もしくはそのサブクラスのインスタンスの場合は、self の絶対値が負の無限大の場合に-1を、正の無限大の場合に1を、有限値の場合に nil を返します。
//emlist[例][ruby]{
10.infinite? # => ni......l
(3r).infinite? # => nil
//}
@see Numeric#finite?、Float#infinite?、Complex#infinite?... -
Numeric
# divmod(other) -> [Numeric] (15225.0) -
self を other で割った商 q と余り r を、 [q, r] という 2 要素の配列にして返します。 商 q は常に整数ですが、余り r は整数であるとは限りません。
...数です。
divmod が返す商は Numeric#div と同じです。
また余りは、Numeric#modulo と同じです。
このメソッドは、メソッド / と % によって定義されています。
@param other 自身を割る数を指定します。
//emlist[例][ruby]{
11.divmod(3)......#=> [3, 2]
(11.5).divmod(3.5) #=> [3, 1.0]
11.divmod(-3) #=> [-4, -1]
11.divmod(3.5) #=> [3, 0.5]
(-11).divmod(3.5) #=> [-4, 3.0]
//}
@see Numeric#div, Numeric#modulo... -
Numeric
# to _ int -> Integer (15222.0) -
self.to_i と同じです。
...self.to_i と同じです。
//emlist[例][ruby]{
(2+0i).to_int # => 2
Rational(3).to_int # => 3
//}... -
Numeric
# remainder(other) -> Numeric (15213.0) -
self を other で割った余り r を返します。
...other 自身を割る数を指定します。
//emlist[例][ruby]{
p 13.remainder(4) #=> 1
p (11.5).remainder(3.5) #=> 1.0
p 13.remainder(-4) #=> 1
p (-13).remainder(4) #=> -1
p (-13).remainder(-4) #=> -1
p (-11).remainder(3.5) #=> -0.5
//}
@see Numeric#divmod, Numeric#modulo... -
Numeric
# denominator -> Integer (15206.0) -
自身を Rational に変換した時の分母を返します。
...自身を Rational に変換した時の分母を返します。
@return 分母を返します。
@see Numeric#numerator、Integer#denominator、Float#denominator、Rational#denominator、Complex#denominator... -
Numeric
# magnitude -> Numeric (15202.0) -
自身の絶対値を返します。
...自身の絶対値を返します。
//emlist[例][ruby]{
12.abs #=> 12
(-34.56).abs #=> 34.56
-34.56.abs #=> 34.56
//}... -
Numeric
# fdiv(other) -> Float | Complex (15124.0) -
self を other で割った商を Float で返します。 ただし Complex が関わる場合は例外です。 その場合も成分は Float になります。
...
Numeric のサブクラスは、このメソッドを適切に再定義しなければなりません。
@param other 自身を割る数を指定します。
//emlist[例][ruby]{
1.fdiv(3) #=> 0.3333333333333333
Complex(1, 1).fdiv 1 #=> (1.0+1.0i)
1.fdiv Complex(1, 1) #=> (0.5-0.5i)
/....../}
@see Numeric#quo... -
Numeric
# ceil -> Integer (15118.0) -
自身と等しいかより大きな整数のうち最小のものを返します。
...自身と等しいかより大きな整数のうち最小のものを返します。
//emlist[例][ruby]{
1.ceil #=> 1
1.2.ceil #=> 2
(-1.2).ceil #=> -1
(-1.5).ceil #=> -1
//}
@see Numeric#floor, Numeric#round, Numeric#truncate...