B&B Electronics VFG3000 - Manual User Manual
Page 241

F
UNCTION
R
EFERENCE
D
EC
T
O
T
EXT
(
DATA
,
SIGNED
,
BEFORE
,
AFTER
,
LEADING
,
GROUP
)
R
EVISION
1
P
AGE
225
D
EC
T
O
T
EXT
(
DATA
,
SIGNED
,
BEFORE
,
AFTER
,
LEADING
,
GROUP
)
A
RGUMENT
T
YPE
D
ESCRIPTION
data
int/float
Numeric data to be formatted.
signed
int
0 – unsigned, 1 – soft sign, 2 – hard sign.
before
int
Number of digits to the left of the decimal point.
after
int
Number of digits to the right of the decimal point.
leading
int
0 – no leading zeros, 1 – leading zeros.
group
int
0 – no grouping, 1– group digits in threes.
D
ESCRIPTION
Formats the value in
data
as a decimal value according to the rest of the parameters. The
function is typically used to generate advanced formatting option via programs, or to prepare
strings to be sent via a raw port driver.
F
UNCTION
T
YPE
This function is passive.
R
ETURN
T
YPE
cstring
.
E
XAMPLE
Text := DecToText(var1, 2, 5, 2, 0, 1)