05.05.2014 Views

csmstr - Omega Engineering

csmstr - Omega Engineering

csmstr - Omega Engineering

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

FUNCTION REFERENCE<br />

DECTOTEXT(DATA, SIGNED, BEFORE, AFTER, LEADING, GROUP)<br />

DECTOTEXT(DATA, SIGNED, BEFORE, AFTER, LEADING, GROUP)<br />

ARGUMENT TYPE DESCRIPTION<br />

data int/float Numeric data to be formatted.<br />

signed int 0 – unsigned, 1 – soft sign, 2 – hard sign.<br />

before int Number of digits to the left of the decimal point.<br />

after int Number of digits to the right of the decimal point.<br />

leading int 0 – no leading zeros, 1 – leading zeros.<br />

group int 0 – no grouping, 1– group digits in threes.<br />

DESCRIPTION<br />

Formats the value in data as a decimal value according to the rest of the parameters. The<br />

function is typically used to generate advanced formatting option via programs, or to prepare<br />

strings to be sent via a raw port driver.<br />

FUNCTION TYPE<br />

This function is passive.<br />

RETURN TYPE<br />

cstring.<br />

EXAMPLE<br />

Text := DecToText(var1, 2, 5, 2, 0, 1)<br />

REVISION 6 PAGE 311

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

Saved successfully!

Ooh no, something went wrong!