Previous Topic

Next Topic

Round - MaxBasic Function

Round(Number: Number[, Decimals: Number]): Number

Round Number to the number of decimal places specified in Decimals, range for Decimals is maximum 9, minimum -6.

If decimals is omitted, 0 is assumed and Round rounds to an integer. Rounding to nearest 10, 100, 1000 and so on may be achieved with negative decimals.

Round function syntax has these named arguments:

Parameter

Description

Number

Required. Number to be rounded.

Decimals

Optional. Number of decimal places to round Number to.

See Also

Number Functions

Book Contents

Book Index