るりまサーチ

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

別のキーワード

  1. rbconfig ruby
  2. fiddle ruby_free
  3. fiddle build_ruby_platform
  4. rake ruby
  5. rubygems/defaults ruby_engine

ライブラリ

キーワード

検索結果

<< < 1 2 3 4 > >>

Float#%(other) -> Float (14.0)

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

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

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

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

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

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

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

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

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

Float#**(other) -> Float (14.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 (14.0)

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

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

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

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

Float#-(other) -> Float (14.0)

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

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

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

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

絞り込み条件を変える

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

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

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

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

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

Float#ceil -> Integer (14.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 (14.0)

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

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

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

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

Float#floor -> Integer (14.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#inspect -> String (14.0)

自身を人間が読みやすい形の文字列表現にして返します。

...

固定小数点、浮動小数点の形式か、 "Infinity"、"-Infinity"、"NaN" のいず
れかを返します。

@
return 文字列を返します。

//emlist[例][ruby]{
0.00001.to_s # => "1.0e-05"
3.14.to_s # => "3.14"
10000_00000_00000.0.to_s # => "10000000000...

絞り込み条件を変える

Float#modulo(other) -> Float (14.0)

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

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

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

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