ceil()

어떤 숫자에 가장 가까우면서 그 숫자보다 크거나 같은 정수 값을 계산합니다.

예를 들어, ceil(9.03)ceil(9.97)을 호출하면 둘 다 10이라는 값을 반환합니다.

예제

구문

ceil(n)

매개변수

n
Number:

올림할 숫자

Returns

Integer: 올림된 숫자
This page is generated from the comments in src/math/calculation.js . Please feel free to edit it and submit a pull request!

관련 레퍼런스