Get to know MDN better
このページはコミュニティーの尽力で英語から翻訳されました。MDN Web Docs コミュニティーについてもっと知り、仲間になるにはこちらから。
This feature is well established and works across many devices and browser versions. It’s been available across browsers since 2015年7月.
Math.ceil() は静的メソッドで、常に切り上げを行い、与えられた数以上の最小の整数を返します。
数値です。
x 以上の最小の整数です。これは -Math.floor(-x) と同じ値です。
ceil() は Math オブジェクトの静的メソッドなので、 Math オブジェクトを生成してメソッドとして使用するのではなく、常に Math.ceil() として使用するようにしてください (Math はコンストラクターではありません)。
| ECMAScript® 2027 Language Specification # sec-math.ceil |
Enable JavaScript to view this browser compatibility table.
This page was last modified on 2025年10月2日 by MDN contributors.
Your blueprint for a better internet.
Visit Mozilla Corporation’s not-for-profit parent, the Mozilla Foundation.
Portions of this content are ©1998–2026 by individual mozilla.org contributors. Content available under a Creative Commons license.