種類
ライブラリ
- ビルトイン (2022)
- benchmark (132)
- bigdecimal (77)
-
bigdecimal
/ newton (11) -
bigdecimal
/ util (22) - cmath (240)
- csv (33)
- fiddle (55)
- json (66)
- mathn (4)
- matrix (220)
-
net
/ http (6) - objspace (11)
- optparse (132)
- securerandom (11)
- set (11)
- stringio (11)
-
webrick
/ httpserver (11) - win32ole (44)
クラス
-
Benchmark
:: Tms (121) - BigDecimal (33)
- Bignum (33)
- CSV (22)
- Complex (115)
- Enumerator (29)
-
Enumerator
:: Chain (6) -
Enumerator
:: Lazy (75) -
Fiddle
:: Function (22) - Fixnum (30)
- Float (636)
- Integer (92)
- Matrix (132)
-
Matrix
:: EigenvalueDecomposition (11) -
Net
:: HTTP (6) - NilClass (11)
- Numeric (167)
- Object (11)
- OptionParser (132)
-
Process
:: Tms (44) - Random (66)
- Range (55)
- Rational (88)
- Set (11)
- String (66)
- StringIO (11)
- Time (80)
- Vector (77)
-
WEBrick
:: HTTPServer (11) -
WIN32OLE
_ TYPELIB (22) -
WIN32OLE
_ VARIANT (22)
モジュール
- Benchmark (11)
- BigMath (22)
- CMath (240)
- Enumerable (11)
- Fiddle (33)
-
GC
:: Profiler (11) - JSON (33)
-
JSON
:: Generator :: GeneratorMethods :: Float (11) - Kernel (77)
- Math (323)
- Newton (11)
- ObjectSpace (11)
- Process (11)
- SecureRandom (11)
キーワード
- % (28)
- * (39)
- ** (39)
- + (39)
- - (61)
- -@ (22)
-
/ (49) -
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (11) - < (11)
- <= (11)
- <=> (11)
- == (11)
- > (11)
- >= (11)
-
ALIGN
_ FLOAT (11) - BigDecimal (22)
- Converters (11)
- DIG (11)
- E (11)
- EPSILON (11)
- FloatDomainError (11)
- INFINITY (11)
- Infinity (11)
-
MANT
_ DIG (11) - MAX (11)
-
MAX
_ 10 _ EXP (11) -
MAX
_ EXP (11) - MIN (11)
-
MIN
_ 10 _ EXP (11) -
MIN
_ EXP (11) - Marshal フォーマット (11)
- MinusInfinity (11)
- NAN (11)
-
NEWS for Ruby 2
. 0 . 0 (11) -
NEWS for Ruby 2
. 2 . 0 (10) -
NEWS for Ruby 2
. 4 . 0 (8) -
NEWS for Ruby 2
. 6 . 0 (6) -
NEWS for Ruby 2
. 7 . 0 (5) - NUM2INT (11)
- NUM2LONG (11)
- NUM2SHORT (11)
- NUM2UINT (11)
- NUM2ULONG (11)
- NUM2USHORT (11)
- NaN (11)
- Numeric (11)
- PI (11)
- RADIX (11)
- RFLOAT (11)
- ROUNDS (7)
- Rational (11)
- Ruby用語集 (11)
-
SIZEOF
_ FLOAT (11) -
TYPE
_ FLOAT (11) - []= (11)
- abs (22)
- acos (17)
- acos! (6)
- acosh (17)
- acosh! (6)
- angle (22)
-
angle
_ with (11) - arg (22)
- asin (17)
- asin! (6)
- asinh (17)
- asinh! (6)
- at (47)
- atan (17)
- atan! (6)
- atan2 (17)
- atan2! (6)
- atanh (17)
- atanh! (6)
- bigdecimal (11)
-
bigdecimal
/ util (11) - bsearch (22)
- call (11)
- cbrt (17)
- cbrt! (6)
- ceil (15)
- classify (11)
-
clock
_ gettime (11) - coerce (11)
- cofactor (11)
-
cofactor
_ expansion (11) - converters (11)
- cos (17)
- cos! (6)
- cosh (17)
- cosh! (6)
- cstime (22)
- cutime (22)
- denominator (22)
- det (11)
-
det
_ e (11) - determinant (11)
-
determinant
_ e (11) - div (17)
- divmod (11)
- dot (11)
-
double
_ fig (11) - each (22)
- eigenvalues (11)
-
elements
_ to _ f (22) -
enum
_ for (22) - eql? (11)
- erf (11)
- erfc (11)
- exp (28)
- exp! (6)
- fdiv (50)
- fiddle (11)
- finite? (27)
- floor (16)
- format (11)
- frexp (11)
- gamma (11)
- grep (11)
-
grep
_ v (9) - hash (11)
- hex (11)
- hypot (11)
- infinite? (27)
-
inner
_ product (11) - inspect (22)
-
laplace
_ expansion (11) - lazy (22)
- ldexp (11)
- lgamma (11)
- log (45)
- log! (12)
- log10 (17)
- log10! (6)
- log2 (17)
- log2! (6)
- magnitude (33)
- mathn (4)
- matrix (11)
- memberwise (11)
- modulo (17)
- nan? (11)
- negative? (9)
- new (62)
-
next
_ float (10) - norm (22)
- numerator (22)
- oct (11)
- on (132)
-
parse
_ csv (11) - phase (22)
- positive? (9)
- pow (22)
-
prev
_ float (10) - putc (11)
- quo (22)
- r (11)
- rand (88)
-
random
_ number (11) - rank (11)
- rationalize (22)
-
rb
_ Float (11) -
rb
_ f _ float (11) -
reachable
_ objects _ from (11) - real (11)
- realtime (11)
- remainder (3)
- round (34)
- rsqrt (4)
-
ruby 1
. 6 feature (11) - sin (17)
- sin! (6)
-
singleton
_ class (11) - sinh (17)
- sinh! (6)
- size (28)
- split (11)
- sprintf (11)
- sprintf フォーマット (11)
- sqrt (17)
- sqrt! (6)
- step (84)
- stime (22)
- tan (17)
- tan! (6)
- tanh (17)
- tanh! (6)
-
to
_ d (22) -
to
_ enum (22) -
to
_ f (94) -
to
_ i (22) -
to
_ json (11) -
to
_ r (11) -
to
_ s (22) - total (11)
-
total
_ time (11) - tr (11)
- trace (11)
- truncate (15)
- utime (22)
- version (11)
-
write
_ timeout= (6) - zero? (11)
- セキュリティモデル (11)
- 正規表現 (11)
検索結果
先頭5件
-
Float
# modulo(other) -> Float (21102.0) -
算術演算子。剰余を計算します。
算術演算子。剰余を計算します。
@param other 二項演算の右側の引数(対象)
//emlist[例][ruby]{
# 剰余
3.0 % 1.2 # => 0.6000000000000001
3.0 % 0.0 # ZeroDivisionError
//} -
Float
# *(other) -> Float (21101.0) -
算術演算子。積を計算します。
算術演算子。積を計算します。
@param other 二項演算の右側の引数(対象)
//emlist[例][ruby]{
# 積
2.4 * 3 # => 7.2
//} -
Float
# **(other) -> Float (21101.0) -
算術演算子。冪を計算します。
算術演算子。冪を計算します。
@param other 二項演算の右側の引数(対象)
//emlist[例][ruby]{
# 冪
1.2 ** 3.0 # => 1.7279999999999998
3.0 + 4.5 - 1.3 / 2.4 * 3 % 1.2 ** 3.0 # => 5.875
0.0 ** 0 # => 1.0
//} -
Float
# +(other) -> Float (21101.0) -
算術演算子。和を計算します。
算術演算子。和を計算します。
@param other 二項演算の右側の引数(対象)
//emlist[例][ruby]{
# 和
3.0 + 4.5 # => 7.5
//} -
Float
# -(other) -> Float (21101.0) -
算術演算子。差を計算します。
算術演算子。差を計算します。
@param other 二項演算の右側の引数(対象)
//emlist[例][ruby]{
# 差
4.5 - 1.3 # => 3.2
//} -
Float
# -@ -> Float (21101.0) -
単項演算子の - です。 self の符号を反転させたものを返します。
単項演算子の - です。
self の符号を反転させたものを返します。
//emlist[例][ruby]{
- 1.2 # => -1.2
- -1.2 # => 1.2
//} -
Float
# / (other) -> Float (21101.0) -
算術演算子。商を計算します。
算術演算子。商を計算します。
@param other 二項演算の右側の引数(対象)
//emlist[例][ruby]{
# 商
1.3 / 2.4 # => 0.541666666666667
1.0 / 0 # => Infinity
//} -
Float
# ==(other) -> bool (21030.0) -
比較演算子。数値として等しいか判定します。
...false を返します。
//emlist[例][ruby]{
3.14 == 3.14000 # => true
3.14 == 3.1415 # => false
//}
NaNどうしの比較は、未定義です。
//emlist[例][ruby]{
Float::NAN == Float::NAN # => false
[Float::NAN] == [Float::NAN] # => true
[Float::NAN] == [0.0 / 0.0] # => false
//}... -
Float
:: MAX _ EXP -> Integer (21022.0) -
最大の Float::RADIX 進の指数です。
...最大の Float::RADIX 進の指数です。
通常はデフォルトで 1024 です。
@see Float::MIN_EXP... -
Float
:: MIN _ EXP -> Integer (21022.0) -
最小の Float::RADIX 進の指数です。
...最小の Float::RADIX 進の指数です。
通常はデフォルトで -1021 です。
@see Float::MAX_EXP...