Content deleted Content added
→Statements: +FOR |
|||
Line 84:
|-
| <code>SIN</code>
| <math>\sin x</math>
|-
| <code>COS</code>
| <math>\cos x</math>
|-
| <code>ATN</code>
| <math>\arctan x</math>
|-
| <code>SQR</code>
Line 96:
|-
| <code>LOG</code>
|
|-
| <code>EXP</code>
Line 108:
|}
Support for strings was more limited, with only one function, <code>LEN</code>, which returned the length of the string parameter. Sub-strings were supported with square brackets, so <code>A£[2,3]</code> referred to the sub-string of the string <code>A£</code> from the 2nd character to the 3rd character inclusive
LET A£ = "FOO" PRINT A£[2,3] would print <code>OO</code> This syntax was also supported on the left-hand side of an assignment, so LET A£ = "FOO"
LET A£[2,2] = "BAR"
|