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