17.07.2013 Views

GWBASIC User's Manual

GWBASIC User's Manual

GWBASIC User's Manual

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

GW-BASIC <strong>User's</strong> Guide<br />

STR$ Function<br />

Purpose:<br />

To return a string representation of the value of x.<br />

Syntax:<br />

STR$(x)<br />

Comments:<br />

STR$(x) is the complementary function to VAL(x$) (see the VAL function).<br />

Examples:<br />

5 REM ARITHMETIC FOR KIDS<br />

10 INPUT "TYPE A NUMBER"; N<br />

20 ON LEN(STR$(N)) GOSUB 30, 40, 50<br />

.<br />

.<br />

.<br />

This program branches to various subroutines, depending on the number of characters typed<br />

before the RETURN key is pressed.<br />

file:///C|/Documents%20and%20Settings/Lorenzo/Desktop/GW%20Basic/STRS.html28/03/2004 21.29.48

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!