roundup() Function

Function

roundup( number, num_digits )

Rounds the number up to the specified digit.

Parameters

Keyword Type Description

number

Decimal

The number to be rounded.

num_digits

Number

Determines the digit or place to which the number will be rounded up to the nearest 10^(-num_digits). 2 is default.

Returns

Decimal

Usage considerations

To round the number up to the nearest hundred, set num_digits equal to -2.

Examples

roundup(7.36819) returns 7.37

roundup(7.36819, 3) returns 7.369

roundup(7.36819, 4) returns 7.3682

See Also

fixed(): Use this function with roundup() to display your desired output.

Open in Github Built: Tue, May 23, 2023 (06:12:33 PM)

On This Page

FEEDBACK