EasyManuals Logo

TSC TTP-345 Programming Manual

TSC TTP-345
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
Page #164 background imageLoading...
Page #164 background image
TSC AUTO ID Technology Co., Ltd. 152 Copyright 2013 All Rights Reserved.
INT( )
Description
This function truncates a floating point number.
Syntax
INT (n)
Parameter
Description
n
Positive or negative integer, floating point number or mathematical
expression
Example
Sample code
DOWNLOAD "DEMO.BAS"
SIZE 4,1
GAP 0,0
DIRECTION 1
INPUT "Number:",Num
CLS
REM **** To round up or down****
N=INT(Num+0.5)
IF N>Num THEN
TEXT 50,100,"3",0,1,1,"To round up= "+STR$(N)
ELSE
TEXT 50,100,"3",0,1,1,"To round down= "+STR$(N)
ENDIF
PRINT 1
EOP
56.2
Result
See Also
DOWNLOAD, EOP, END, ABS(), ASC(), STR$()

Table of Contents

Other manuals for TSC TTP-345

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the TSC TTP-345 and is the answer not in the manual?

TSC TTP-345 Specifications

General IconGeneral
Print MethodThermal Transfer
Resolution300 dpi
Max Print Speed5 ips
Max Print Length90" (2286 mm)
Memory8 MB Flash
InterfaceUSB 2.0, RS-232
Power SupplyExternal universal switching power supply

Related product manuals