Round

Top  Previous  Next

Function

Parameters

Return value

Round

double d

double

Round

decimal d

decimal

 

Rounds d to the nearest integer.

 

Example:

 

Round(1.47) = 1

 

 

Function

Parameters

Return value

Round

double d,

int digits

double

Round

decimal d,

int digits

decimal

 

Rounds d to a precision specified in the "digits" parameter.

 

Example:

 

Round(1.478, 2) = 1.48