11.07.2015 Views

Here - 1000 BiT

Here - 1000 BiT

Here - 1000 BiT

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.

LESSON 27SWITCHING NUMBERS WITH STRINGSThis lesson explains two functions: VAL( ) and STR$( ).MAKING STRINGS INTO NUMBERSWe have two kinds of variables: strings and numbers. We can change one kind into theother.Run10 REM STRINGS INTO NUMBERS20 PRINT'clr"30L$="123":M$="789"50 L=VAL(L$):M=VAL(M$)70 PRINT L72 PRINT M74 PRINT "76 PRINT L+MVAL stands for value. It changes a string to a number, if it can.152

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

Saved successfully!

Ooh no, something went wrong!