Brother International TD-4420TN FBPL Command Reference - Page 180
VAL, Description, Syntax, Example, See Also
![]() |
View all Brother International TD-4420TN manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 180 highlights
10.48 VAL() Description Convert numeric characters into corresponding integer or floating point number. Syntax VAL("numeric character") Parameter numeric character Description " 0~9","." Example Sample code DOWNLOAD "DEMO.BAS" SIZE 4,1 GAP 0,0 DIRECTION 1 A$="ABCDEFGHIJKLMNOPQRSTUVWXYZ" F$="100" G$="500" CLS H=VAL(F$)+VAL(G$) I$=STR$(H) TEXT 10,10, "3",0,1,1,A$ TEXT 10,60, "3",0,1,1, "F=" +F$ TEXT 10,110, "3",0,1,1, "G=" +G$ TEXT 10,160, "3",0,1,1, "F+G=" +I$ PRINT 1 EOP DEMO Result See Also DOWNLOAD, EOP, END, LEFT$(), LEN(), RIGHT$(), MID$(), STR$() 175
![](/manual_guide/products/brother-international-td4420tn-fbpl-command-reference-a4fb318/180.png)
175
10.48 VAL()
Description
Convert numeric characters into corresponding integer or floating point number.
Syntax
VAL("numeric character")
Parameter
Description
numeric character
" 0~9","."
Example
Sample code
DOWNLOAD "DEMO.BAS"
SIZE 4,1
GAP 0,0
DIRECTION 1
A$="ABCDEFGHIJKLMNOPQRSTUVWXYZ"
F$="100"
G$="500"
CLS
H=VAL(F$)+VAL(G$)
I$=STR$(H)
TEXT 10,10, "3",0,1,1,A$
TEXT 10,60, "3",0,1,1, "F=" +F$
TEXT 10,110, "3",0,1,1, "G=" +G$
TEXT 10,160, "3",0,1,1, "F+G=" +I$
PRINT 1
EOP
DEMO
Result
See Also
DOWNLOAD, EOP, END, LEFT$(), LEN(), RIGHT$(), MID$(), STR$()