10 REM PC-BASIC test
20 REM CVI, CVS, CVD functions
30 OPEN "OUTPUT.TXT" FOR OUTPUT AS 1
40 ON ERROR GOTO 10000
50 PRINT#1, CVI
60 PRINT#1, CVI(
70 PRINT#1, CVI("ABC"
80 PRINT#1, CVI(1
90 PRINT#1, CVI(1.5
150 PRINT#1, CVS
160 PRINT#1, CVS(
170 PRINT#1, CVS("ABC"
180 PRINT#1, CVS(1
190 PRINT#1, CVS(1.5
250 PRINT#1, CVD
260 PRINT#1, CVD(
270 PRINT#1, CVD("ABC"
280 PRINT#1, CVD(1
290 PRINT#1, CVD(1.5
300 PRINT#1, CVI("AB")
310 PRINT#1, CVS("ABCD")
320 PRINT#1, CVD("ABCDEFG")
400 PRINT#1, CVI("ABC")
410 PRINT#1, CVS("ABC")
420 PRINT#1, CVD("ABC")
500 PRINT#1, CVI("")
510 PRINT#1, CVS("")
520 PRINT#1, CVD("")
600 PRINT#1, CVI(0)
610 PRINT#1, CVS(0)
620 PRINT#1, CVD(0)
700 PRINT#1, CVI(1.5)
710 PRINT#1, CVS(1.5)
720 PRINT#1, CVD(1.5)
9999 END
10000 PRINT#1, ERR, ERL
10010 RESUME NEXT
