EasyManua.ls Logo

Bematech LB-1000 - Page 119

Bematech LB-1000
172 pages
Print Icon
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...
"!6:
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
DOWNLOAD "DEMO.BAS"
SIZE 4,2
GAP 0,0
DENSITY 8
SPEED 3
DIRECTION 0
REFERENCE 0,0
SET CUTTER OFF
SET PEEL OFF
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
See Also
DOWNLOAD, EOP, END, ABS(), ASC(), STR$()

Other manuals for Bematech LB-1000