THERMAL BARCODE PRINTER SERIES
41
BASIC Commands and Functions
43.
ABS( )
Description
This function returns the absolute value of an integer, floating point or variable.
Syntax
ABS (-100)
ABS (-99.99)
ABS (VARIABLE)
Example
DOWNLOAD
“
TEST.BAS
”
SIZE 3,4
GAP 0,0
DENSITY 8
SPEED 3
DIRECTION 0
REFERENCE 0,0
SET PEEL OFF
CLS
A=ABS(-100)
B=ABS(-50.98)
C=-99.99
TEXT 100,100,
”
3
”
,0,1,1,STR$(A)
TEXT 100,150,
”
3
”
,0,1,1,STR$(B)
TEXT 100,200,
”
3
”
,0,1,1,STR$(ABS(C))
PRINT 1
EOP
See Also
DOWNLOAD, EOP