ライブラリ
- ビルトイン (1244)
- bigdecimal (77)
-
bigdecimal
/ jacobian (22) - csv (22)
- mathn (13)
- matrix (154)
- mkmf (22)
-
net
/ ftp (22) -
net
/ http (6) - openssl (77)
- optparse (132)
- psych (17)
- securerandom (7)
- socket (88)
クラス
- BigDecimal (77)
- Bignum (12)
- CSV (22)
- Complex (165)
-
Enumerator
:: ArithmeticSequence (42) - Fixnum (9)
- Float (44)
- Integer (263)
- Matrix (77)
-
Matrix
:: LUPDecomposition (22) -
Net
:: FTP (22) -
Net
:: HTTP (6) - Numeric (547)
- Object (22)
-
OpenSSL
:: ASN1 :: NumericString (22) -
OpenSSL
:: BN (11) - OptionParser (132)
- Range (11)
- Rational (26)
- Socket (44)
- Time (47)
- UnboundMethod (11)
- Vector (33)
モジュール
- GC (22)
- Jacobian (22)
- Kernel (22)
- Math (8)
-
OpenSSL
:: ASN1 (33) - Psych (17)
- SecureRandom (7)
-
Socket
:: Constants (44)
キーワード
- % (33)
- * (55)
- ** (15)
- + (11)
- +@ (11)
- - (11)
- -@ (11)
-
/ (77) -
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (11) - <=> (11)
-
AI
_ NUMERICHOST (22) -
AI
_ NUMERICSERV (22) - ArithmeticSequence (6)
- Complex (11)
- Converters (11)
- Matrix (11)
-
NEWS for Ruby 2
. 1 . 0 (11) -
NEWS for Ruby 2
. 3 . 0 (9) -
NEWS for Ruby 2
. 4 . 0 (8) -
NEWS for Ruby 2
. 5 . 0 (7) -
NEWS for Ruby 2
. 6 . 0 (6) -
NEWS for Ruby 3
. 0 . 0 (4) -
NI
_ NUMERICHOST (22) -
NI
_ NUMERICSERV (22) - NUMERICSTRING (11)
- Numeric (11)
- NumericString (33)
- Rubyで使われる記号の意味(正規表現の複雑な記号は除く) (11)
- Ruby用語集 (11)
- Vector (11)
- [] (27)
- abs (22)
- abs2 (22)
- alphanumeric (7)
- angle (22)
- arg (22)
- at (47)
- begin (6)
- bigdecimal (11)
- ceil (22)
-
check
_ signedness (22) - clone (11)
- coerce (33)
- conj (11)
- conjugate (11)
- denominator (11)
- det (22)
- determinant (22)
- dfdxi (11)
- div (22)
- divmod (39)
- downto (22)
- dup (11)
- end (6)
- eql? (11)
- fdiv (28)
- finite? (8)
- first (12)
- floor (33)
- i (11)
- imag (22)
- imaginary (22)
- infinite? (8)
- integer? (11)
- jacobian (11)
- last (12)
- magnitude (22)
- matrix (11)
- modulo (33)
- negative? (9)
- new (22)
- nonzero? (11)
- numerator (11)
- on (132)
-
open
_ timeout (11) - owner (11)
- phase (22)
- polar (22)
- positive? (9)
- pow (22)
- quo (44)
-
rb
_ num2dbl (11) -
read
_ timeout (11) - real (22)
- real? (33)
- rect (22)
- rectangular (22)
- remainder (36)
- round (22)
- rsqrt (4)
-
ruby 1
. 6 feature (11) -
ruby 1
. 8 . 4 feature (11) -
safe
_ load (17) - size (11)
- sqrt (4)
- stat (22)
- step (90)
- table (11)
- times (22)
-
to
_ c (11) -
to
_ i (11) -
to
_ int (11) - truncate (33)
- upto (22)
-
write
_ timeout (6) - zero? (11)
検索結果
先頭5件
-
BigDecimal
# modulo(n) -> BigDecimal (12.0) -
self を n で割った余りを返します。
....to_s)
( x % 3).to_i # => 1
(-x % 3).to_i # => 2
( x % -3).to_i # => -2
(-x % -3).to_i # => -1
//}
戻り値は n と同じ符号になります。これは BigDecimal#remainder とは
異なる点に注意してください。詳細は Numeric#%、
Numeric#remainder を参照して下さい。... -
BigDecimal
# remainder(n) -> BigDecimal (12.0) -
self を n で割った余りを返します。
...# => 1
(-x).remainder(3).to_i # => -1
x.remainder(-3).to_i # => 1
(-x).remainder(-3).to_i # => -1
//}
戻り値は self と同じ符号になります。これは BigDecimal#% とは異な
る点に注意してください。詳細は Numeric#%、
Numeric#remainder を参照して下さい。... -
CSV
:: Converters -> Hash (12.0) -
このハッシュは名前でアクセスできる組み込みの変換器を保持しています。
...ドを変換します。
: :numeric
:integer と :float の組み合わせです。
: :date
Date.parse を使用してフィールドを変換します。
: :date_time
DateTime.parse を使用してフィールドを変換します。
: :all
:date_time と :numeric の組み合わせです... -
Float
# floor -> Integer (12.0) -
自身と等しいかより小さな整数のうち最大のものを返します。
...自身と等しいかより小さな整数のうち最大のものを返します。
//emlist[例][ruby]{
1.2.floor # => 1
2.0.floor # => 2
(-1.2).floor # => -2
(-2.0).floor # => -2
//}
@see Numeric#ceil, Numeric#round, Float#truncate... -
Float
# floor(ndigits = 0) -> Integer | Float (12.0) -
自身と等しいかより小さな整数のうち最大のものを返します。
...oor(-4) # => 30000
34567.89.floor(-3) # => 34000
34567.89.floor(-2) # => 34500
34567.89.floor(-1) # => 34560
34567.89.floor(0) # => 34567
34567.89.floor(1) # => 34567.8
34567.89.floor(2) # => 34567.89
34567.89.floor(3) # => 34567.89
//}
@see Numeric#ceil, Numeric#round, Float#truncate... -
NEWS for Ruby 2
. 5 . 0 (12.0) -
NEWS for Ruby 2.5.0 このドキュメントは前回リリース以降のバグ修正を除くユーザーに影響のある機能の変更のリストです。
...e#define_method, Module#alias_method, Module#undef_method, Module#remove_method はパブリックメソッドになりました 14133
* Numeric
* Numeric#step は > で0と比較できない引数が与えられたときcoerce内部で発生したエラーを隠蔽しないようになりま......ms.org/2017/10/09/2.6.14-released.html
* https://blog.rubygems.org/2017/08/27/2.6.13-released.html
* securerandom
* SecureRandom.alphanumeric を追加
* set
* Set#to_s を Set#inspect の別名として追加 13676
* Set#=== を Set#include? の別名として追加 13801... -
NEWS for Ruby 3
. 0 . 0 (12.0) -
NEWS for Ruby 3.0.0 このドキュメントは前回リリース以降のバグ修正を除くユーザーに影響のある機能の変更のリストです。
...pipe, no broken pipe error message will be shown now. 14413
* `TRUE`/`FALSE`/`NIL` constants are no longer defined.
* Integer#zero? overrides Numeric#zero? for optimization. 16961
* Enumerable#grep and Enumerable#grep_v when passed a Regexp and no block no longer modify Regexp.last_match. 17......low compilations.
* Memory view interface [EXPERIMENTAL]
* The memory view interface is a C-API set to exchange a raw memory area, such as a numeric array or a bitmap image, between extension libraries. The extension libraries can share also the metadata of the memory area that consists of the... -
OpenSSL
:: BN # coerce(other) -> Array (12.0) -
自身と other が同じクラスになるよう、自身か other を変換し [other, self] という配列にして返します。
...。
//emlist[][ruby]{
require 'openssl'
p 1.to_bn.coerce(2) # => [2, 1]
//}
@param other 変換の基準となるオブジェクト
@raise TypeError 変換に失敗した場合に発生します
coerce メソッドの詳細な説明は、Numeric#coerce にあります。
@see Numeric#coerce... -
Time
. at(time , usec) -> Time (12.0) -
time + (usec/1000000) の時刻を表す Time オブジェクトを返します。 浮動小数点の精度では不十分な場合に使用します。
...起算時からの経過秒数を表わす値をInteger、 Float、 Rational、または他のNumericで指定します。
@param usec マイクロ秒をInteger、 Float、 Rational、または他のNumericで指定します。
//emlist[][ruby]{
Time.at(946684800, 123456.789).nsec # => 123456789... -
ruby 1
. 6 feature (12.0) -
ruby 1.6 feature ruby version 1.6 は安定版です。この版での変更はバグ修正がメイン になります。
...)
p(-1[-1])
=> ruby 1.6.5 (2001-09-19) [i586-linux]
1
=> ruby 1.6.5 (2001-11-01) [i586-linux]
1
: Numeric#remainder
((<ruby-bugs-ja:PR#110>))
p( 3.remainder(-3))
p(-3.remainder(3))
=> ruby 1.6.5 (2001-09-19) [i586-linux]......end
}
=> ruby 1.6.5 (2001-09-19) [i586-linux]
NotImplementedError
MatchData
Exception
Numeric
MatchData
Segmentation fault
=> ruby 1.6.5 (2001-10-15) [i586-linux]
MatchData
NotImpl... -
Time
. at(seconds , xseconds , unit) -> Time (8.0) -
unit に応じて seconds + xseconds ミリ秒などの時刻を表す Time オブジェクトを返します。
...オブジェクトを返します。
@param seconds 起算時からの経過秒数を表わす値をInteger、 Float、 Rational、または他のNumericで指定します。
@param xseconds unit に対応するミリ秒かマイクロ秒かナノ秒を指定します。
@param unit :millisecond, :... -
Time
. at(seconds , xseconds , unit , in:) -> Time (8.0) -
unit に応じて seconds + xseconds ミリ秒などの時刻を表す Time オブジェクトを返します。
...オブジェクトを返します。
@param seconds 起算時からの経過秒数を表わす値をInteger、 Float、 Rational、または他のNumericで指定します。
@param xseconds unit に対応するミリ秒かマイクロ秒かナノ秒を指定します。
@param unit :millisecond, :... -
BigDecimal
# / (other) -> BigDecimal (6.0) -
商を計算します。
...商を計算します。
@param other self を割る数を指定します。
詳細は Numeric#quo を参照して下さい。
計算結果の精度についてはlib:bigdecimal#precisionを参照してください。... -
BigDecimal
# coerce(other) -> Array (6.0) -
self と other が同じクラスになるよう、self か other を変換し [other, self] という配列にして返します。
...lf の有効桁数を
用いて変換を行います。
数値を表す文字列から BigDecimal オブジェクトに変換する機能はデフォ
ルトでは無効になっています。必要な場合は ENABLE_NUMERIC_STRING を有効に
して Ruby をコンパイルしてください。...