Ceil

Returns the rounded-up value.

Variants

Ceil(Duration duration, Duration significance)

Returns the smallest multiple of the significance which is greater than or equal to the duration.

Parameters

duration
The value you want to round.
significance
The multiple to which you want to round.

Returns

Duration

Remarks

Note that if the significance is negative, the result is closer to negative infinity than the duration is.

Examples

Ceil(Numeric number)

Returns the smallest integer greater than or equal to the number.

Parameters

number
The value you want to round.

Returns

Numeric

Examples

Ceil(Numeric number, Numeric significance)

Returns the smallest multiple of significance which is greater than or equal to the number.

Parameters

number
The value you want to round.
significance
The multiple to which you want to round.

Returns

Numeric

Remarks

Note that if the significance is a negative number, the result is closer to negative infinity than the number is.

Examples

Ceil(Time time, Duration significance)

Returns the smallest multiple of the significance which is greater than or equal to the time.

Parameters

time
The value you want to round.
significance
The multiple to which you want to round.

Returns

Time

Examples