Round

concerns

The Round attribute returns the value of the rounded variable. The rounding Type can be adjusted to the desired requirements.

 

Syntax

Round(Digits, [RoundType = RoundTypes.Commercial])

Return value

Type

Description

Double

The rounded value of the variable

Parameter

Use

Name

Type

Passing

Description

Required

Digits

Long

ByVal

Number of decimal places

Optional

RoundType

RoundTypes

ByVal

Rounding Type

 

RoundTypes

Description

0 – Commercial

It is rounded up at >= 5, otherwise rounded down

1 – AlwaysDown

It is always rounded down

2 – AlwaysUp

It is always rounded up