<<

Contents

Search

>>

 

ROUNDED

 

 

Instruction

 

 

Syntax:

ROUNDED(<Significant Digits>)

 

<Significant Digits> = <NUM-EXPRESSION>

 

Meaning:

Rounding function

 

The rounding function ROUNDED can be applied with the assignment to a numeric variable. With a negative value of <Significant Digits> the numbers are rounded to the number of specified post decimal positions, otherwise to pre-decimal positions.

 

Parameter:

Significant Digits

Number of significant digits:

> 0 means pre-decimal positions

< 0 means post decimal positions

 

Sample:

H = ROUNDED(-3) 12.3456 /* H = 12.346

H = ROUNDED(2) 12345.56 /* H = 12300

H = ROUNDED(0) 12345.56 /* H = 12346

 

See also:

FIX

INT