るりまサーチ

最速Rubyリファレンスマニュアル検索!
2022件ヒット [201-300件を表示] (0.277秒)

別のキーワード

  1. _builtin new
  2. _builtin inspect
  3. _builtin []
  4. _builtin to_s
  5. _builtin each

ライブラリ

クラス

モジュール

キーワード

検索結果

<< < 1 2 3 4 5 ... > >>

Float#*(other) -> Float (17101.0)

算術演算子。積を計算します。

算術演算子。積を計算します。

@param other 二項演算の右側の引数(対象)

//emlist[例][ruby]{
# 積
2.4 * 3 # => 7.2
//}

Float#**(other) -> Float (17101.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 (17101.0)

算術演算子。和を計算します。

算術演算子。和を計算します。

@param other 二項演算の右側の引数(対象)

//emlist[例][ruby]{
# 和
3.0 + 4.5 # => 7.5
//}

Float#-(other) -> Float (17101.0)

算術演算子。差を計算します。

算術演算子。差を計算します。

@param other 二項演算の右側の引数(対象)

//emlist[例][ruby]{
# 差
4.5 - 1.3 # => 3.2
//}

Float#-@ -> Float (17101.0)

単項演算子の - です。 self の符号を反転させたものを返します。

単項演算子の - です。
self の符号を反転させたものを返します。

//emlist[例][ruby]{
- 1.2 # => -1.2
- -1.2 # => 1.2
//}

絞り込み条件を変える

Float#/(other) -> Float (17101.0)

算術演算子。商を計算します。

算術演算子。商を計算します。

@param other 二項演算の右側の引数(対象)

//emlist[例][ruby]{
# 商
1.3 / 2.4 # => 0.541666666666667
1.0 / 0 # => Infinity
//}

Float#==(other) -> bool (17030.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 (17022.0)

最大の Float::RADIX 進の指数です。

...最大の Float::RADIX 進の指数です。

通常はデフォルトで 1024 です。

@see Float::MIN_EXP...

Float::MIN_EXP -> Integer (17022.0)

最小の Float::RADIX 進の指数です。

...最小の Float::RADIX 進の指数です。

通常はデフォルトで -1021 です。

@see Float::MAX_EXP...

Float#ceil -> Integer (17018.0)

自身と等しいかより大きな整数のうち最小のものを返します。

...自身と等しいかより大きな整数のうち最小のものを返します。


//emlist[例][ruby]{
1.2.ceil # => 2
2.0.ceil # => 2
(-1.2).ceil # => -1
(-2.0).ceil # => -2
//}

@see Float#floor, Float#round, Float#truncate...

絞り込み条件を変える

Float::DIG -> Integer (17016.0)

Float が表現できる最大の 10 進桁数です。

...
Float
が表現できる最大の 10 進桁数です。

通常はデフォルトで 15 です。...
<< < 1 2 3 4 5 ... > >>