09.12.2012 Views

Basic Characteristics RAPID

Basic Characteristics RAPID

Basic Characteristics RAPID

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Round Round is a numeric value<br />

Example<br />

Round is used to round a numeric value to a specified number of decimals or to an integer<br />

value.<br />

VAR num val;<br />

val := Round(0.38521\Dec:=3);<br />

The variable val is given the value 0.385.<br />

val := Round(0.38521\Dec:=1);<br />

The variable val is given the value 0.4.<br />

val := Round(0.38521);<br />

The variable val is given the value 0.<br />

Return value Data type: num<br />

Arguments<br />

The numeric value rounded to the specified number of decimals.<br />

Round ( Val [\Dec])<br />

Val (Value) Data type: num<br />

The numeric value to be rounded.<br />

[\Dec] (Decimals Data type: num<br />

Number of decimals.<br />

If the specified number of decimals is 0 or if the argument is omitted, the value<br />

is rounded to an integer.<br />

The number of decimals must not be negative or greater than the available precision<br />

for numeric values.<br />

<strong>RAPID</strong> Reference Manual 9-Round-1

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!