るりまサーチ

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

別のキーワード

  1. openssl t61string
  2. asn1 t61string
  3. matrix t
  4. t61string new
  5. fiddle type_size_t

ライブラリ

キーワード

検索結果

<< < ... 2 3 4 >>

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

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

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

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

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

Float#**(other) -> Float (3108.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 (3108.0)

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

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

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

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

Float#-(other) -> Float (3108.0)

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

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

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

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

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

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

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

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

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

絞り込み条件を変える

Float#ceil -> Integer (3108.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#eql?(other) -> bool (3108.0)

自身と other のクラスが等しくかつ == メソッドで比較して等しい場合に true を返します。 そうでない場合に false を返します。

...other のクラスが等しくかつ == メソッドで比較して等しい場合に true を返します。
そうでない場合に false を返します。

@
param other 自身と比較したい数値を指定します。

//emlist[例][ruby]{
1.0.eql?(1) # => false
1.0.eql?(1.0) # => true
//...

Float#floor -> Integer (3108.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#modulo(other) -> Float (3108.0)

算術演算子。剰余を計算します。

...算術演算子。剰余を計算します。

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

//emlist[例][ruby]{
# 剰余
3.0 % 1.2 # => 0.6000000000000001
3.0 % 0.0 # ZeroDivisionError
//}...
<< < ... 2 3 4 >>