FE MONITOUCH V8 SERIES Reference: Additional Functions page 388

Table of Contents

Advertisement

• String "−12.34": A negative value in DEC with a negative sign format and with two decimal places
$u00100 = '−12.34' (STRING)
$u00200 = 1 (W) [DEC with a negative sign]
$u00201 = 0 (W) [1 word]
$u00202 = 0 (W) [DEC]
$u00203 = 4 (W) [4 digits]
$u00204 = 2 (W) [Two decimal places]
$u00205 = 0 (W) [With zero suppress]
$u00206 = 0 (W) [Leading spaces removed]
$u00207 = 0 (W) [0 fixed]
FORMAT_DATA $u00300 $u00100 $u00200
The result "−1234" is stored in $u300.
• String "1234": FLOAT
$u00100 = '
12.34' (STRING)
;(For a positive value, add a space code 20H in the leftmost position.)
$u00200 = 6 (W) [FLOAT]
$u00201 = 0 (W) [0 fixed]
$u00202 = 0 (W) [0 fixed]
$u00203 = 4 (W) [4 digits]
$u00204 = 0 (W) [Without decimal point]
$u00205 = 0 (W) [With zero suppress]
$u00206 = 0 (W) [Leading spaces removed]
$u00207 = 0 (W) [0 fixed]
FORMAT_DATA $u00300 $u00100 $u00200
The result "1234" is stored in $u300 and $u301.
• String "001234": In DEC without sign format and without zero suppress
$u00100 = '001234' (STRING)
$u00200 = 0 (W) [DEC without sign]
$u00201 = 0 (W) [1 word]
$u00202 = 0 (W) [DEC]
$u00203 = 6 (W) [6 digits]
$u00204 = 0 (W) [Without decimal point]
$u00205 = 1 (W) [Without zero suppress]
$u00206 = 0 (W) [Leading spaces removed]
$u00207 = 0 (W) [0 fixed]
FORMAT_DATA $u00300 $u00100 $u00200
The result "1234" is stored in $u300.
• String "
1234": In DEC without sign format and with two leading spaces
$u00100 = '
1234' (STRING)
$u00200 = 0 (W) [DEC without sign]
$u00201 = 0 (W) [1 word]
$u00202 = 0 (W) [DEC]
$u00203 = 6 (W) [6 digits]
$u00204 = 0 (W) [Without decimal point]
$u00205 = 0 (W) [With zero suppress]
$u00206 = 0 (W) [Leading spaces removed]
$u00207 = 0 (W) [0 fixed]
FORMAT_DATA $u00300 $u00100 $u00200
The result "1234" is stored in $u300.
23
Macro
23
23-19

Advertisement

Table of Contents
loading

Table of Contents