Map and Table Calculation

ROUND( ) function

Rounds the specified value to the nearest long integer value.

Syntax

ROUND(Value)

Input

Value is a value
Domain type: any Value domain

Output

ROUND returns: a long integer value
Domain: system domain Value

Note:

When the input value is undefined, the output value will also be undefined.

Tip:

When the definition symbol = is used, a dependent output map or dependent output column is created; when the assignment symbol := is used, the dependency link is immediately broken after the output map/column has been calculated.

Usable in

MapCalc, TabCalc, Simple calculators

Examples

Pocket line calculator examples:

? ROUND(0.5)

returns 1

? ROUND(2.4)

returns 2

? ROUND(ABS(-3.5))

returns 4

MapCalc example:

OutMap = ROUND(InMap)

 

InMap

OutMap

1.4 1.5 1.6
? 0 1
-1.6 -1.5 -1.4
1 2 2
? 0 1
-2 -2 -1

TabCalc example:

OutCol = ROUND(InCol)

 

InCol

OutCol

-1.6

-2

-1.5

-2

-1.4

-1

?

?

0

0

1

1

1.4

1

1.5

2

1.6

2

See also: