Round Function

Syntax

Number Round(Number number, Number option = 0)

Return Value

Number

The rounded number.

Purpose

This function rounds a number to an integer using the specified rounding method.

Parameters

number as Number

The number to round.

option as Number

An optional parameter: how to round. Use the following values:     0 - (default) round towards zero     1 - round away from zero.     2 - round towards positive infinity.     3 - round towards negative infinity.     4 - round to the nearest integer. If the number is exactly between two integers, rounds to the nearest even integer.