roundup

math

Explicitly rounds up to the nearest integer

Syntax

roundup(number)

Parameters

number (number)

The number to round up

Returns

number

The number rounded up to the nearest integer

Examples

Input:
3.1 | roundup
Output:
4
Input:
roundup(5.0)
Output:
5
Input:
roundup(7.9)
Output:
8

The roundup() function explicitly rounds up to the nearest integer.

Usage

Use roundup() when you need to ensure values are always rounded upward, similar to ceil().

Related Functions