るりまサーチ

最速Rubyリファレンスマニュアル検索!
11件ヒット [1-11件を表示] (0.034秒)
トップページ > クラス:Integer[x] > ライブラリ:ビルトイン[x] > クエリ:numeric[x] > クエリ:ceil[x] > 種類:インスタンスメソッド[x]

別のキーワード

  1. numeric step
  2. _builtin numeric
  3. numeric real
  4. numeric fdiv

検索結果

Integer#ceil(ndigits = 0) -> Integer (18141.0)

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

...数を整数で指定します。
負の整数を指定した場合、小数点位置から左に少なくとも n 個の 0 が並びます。

//emlist[][ruby]{
1.ceil # => 1
1.ceil(2) # => 1
18.ceil(-1) # => 20
(-18).ceil(-1) # => -10
//}

@see Numeric#ceil...

Integer#ceil(ndigits = 0) -> Integer | Float (18141.0)

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

...負の整数を指定した場合、Integer を返します。
小数点位置から左に少なくとも n 個の 0 が並びます。

//emlist[][ruby]{
1.ceil # => 1
1.ceil(2) # => 1.0
18.ceil(-1) # => 20
(-18).ceil(-1) # => -10
//}

@see Numeric#ceil...