ceil

Returns the smallest integer that is greater than or equal to the specified number.

Syntax

ceil(x)

Parameters

Parameter

Type

Description

x

number

Numeric value

Return

Returns the smallest integer that is greater than or equal to x.

Examples

Python

import math
x = math.ceil(1.01)
# x now is equal to 2

NexScript

x = ceil(1.01)
% x now is equal to 2