mround() Function

Function

mround( number, multiple )

Rounds the number to the specified multiple.

Parameters

Keyword Type Description

number

Decimal

The number that will be rounded.

multiple

Decimal

The multiple to which you want to round the number.

Returns

Integer

Usage considerations

If the nearest lower multiple is as far away as the nearest higher multiple, the number will be rounded up.

Examples

You can experiment with this function in the test box below.

Test Input

mround(63,8) returns 64

See Also

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

Open in Github Built: Fri, Nov 19, 2021 (11:59:11 AM)

On This Page

FEEDBACK