ceil()

数値以上のもっとも近い整数値を計算します。

例えば、ceil(9.03)ceil(9.97)を呼び出すと、 どちらも値10を返します。

実例

シンタックス

ceil(n)

パラメーター

n
Number:

切り上げる数値。

リターン

Integer: 切り上げられた数値。
This page is generated from the comments in src/math/calculation.js . Please feel free to edit it and submit a pull request!

関連するリファレンス