EasyManua.ls Logo

TSC M23 - BASIC Commands and Functions; Abs( )

TSC M23
252 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
TSC AUTO ID Technology Co., Ltd. 112 Copyright 2013 All Rights Reserved.
BASIC Commands and Functions
ABS( )
Description
This function returns the absolute value of an integer, floating point or variable.
Syntax
ABS (VARIABLE)
Example
Sample code
DOWNLOAD "TEST.BAS"
SIZE 4,4
GAP 0,0
DIRECTION 1
SET TEAR ON
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
RUN "TEST.BAS"
Result
See Also
DOWNLOAD, EOP

Table of Contents

Other manuals for TSC M23

Related product manuals