02.10.2012 Views

Programmer's Reference Manual Intermec Fingerprint® v8.70.0 ...

Programmer's Reference Manual Intermec Fingerprint® v8.70.0 ...

Programmer's Reference Manual Intermec Fingerprint® v8.70.0 ...

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.

FORMAT$, cont.<br />

Examples Addition<br />

B$="234.9"<br />

C$="1001"<br />

D$="# ##0.##"<br />

A$=FLOATCALC$(B$,"+",C$,15)<br />

PRINT A$<br />

"1235.900000000000000"<br />

PRINT FORMAT$(A$,D$)<br />

"1 235.9"<br />

Chapter —Program Instructions<br />

Subtraction<br />

A$=FLOATCALC$("234.90","-","100.013",2)<br />

PRINT A$<br />

"134.88"<br />

PRINT FORMAT$(A$,"\$ 0,000#")<br />

"$ 134,880"<br />

Note: If a higher precision is used in FLOATCALC$, A$ will yield<br />

"$134,887".<br />

Multiplication<br />

B$="3"<br />

A$=FLOATCALC$("100", "*", B$, 1)<br />

PRINT A$<br />

"300.0"<br />

C$="0 0 0,00###"<br />

PRINT FORMAT$(A$,C$)<br />

"3 0 0,00"<br />

Division<br />

B$="1.0"<br />

A$=FLOATCALC$(B$,"/","3.0")<br />

PRINT A$<br />

"0.3333333333"<br />

PRINT FORMAT$(A$,"\$ 000.00###")<br />

"$ 000.33333"<br />

yields:<br />

yields:<br />

yields:<br />

yields:<br />

yields:<br />

yields:<br />

yields:<br />

yields:<br />

<strong>Intermec</strong> Fingerprint <strong>v8.70.0</strong>/v10.0.0 Programmer´s <strong>Reference</strong> <strong>Manual</strong> 10

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

Saved successfully!

Ooh no, something went wrong!