Runtime evaluation: Difference between revisions

Content added Content deleted
Line 173: Line 173:


CHR$ 178 is the token of function SQR, and CHR$ 178 is the token of function SIN.
CHR$ 178 is the token of function SQR, and CHR$ 178 is the token of function SIN.

In 48 k mode, you can also write this:
<lang zxbasic>10 LET f= SQR (x)+SIN (x*3)/2</lang>
Then the type of the variable is changed and the formula is enclosed in quotation marks:
<lang zxbasic>10 LET f$=" SQR (x)+SIN (x*3)/2"</lang>


=={{header|BBC BASIC}}==
=={{header|BBC BASIC}}==