ceil (Function)

Signature: ceil(x: t0) -> t0

Description: The least integer >= x, as a float. Total: ceil of an infinity or NaN is itself.

Parameters

  • x (t0): The float to round up

Returns: t0

Example

print(ceil(2.3))  // 3.0
print (ceil 2.3)  // 3.0