387件ヒット
[301-387件を表示]
(0.139秒)
ライブラリ
- ビルトイン (363)
-
bigdecimal
/ util (24)
キーワード
- % (12)
- * (12)
- ** (12)
- + (12)
- - (12)
- -@ (12)
-
/ (12) - < (12)
- <= (12)
- == (12)
- > (12)
- >= (12)
- ceil (12)
- denominator (12)
- divmod (12)
- eql? (12)
- floor (12)
- inspect (12)
- modulo (12)
- negative? (10)
-
next
_ float (11) - numerator (12)
- positive? (10)
-
prev
_ float (11) - rationalize (24)
- round (21)
-
to
_ d (24) -
to
_ i (12) -
to
_ s (12) - truncate (12)
検索結果
先頭5件
-
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
//}...