| VAL$ a$=VAL$(n,width,ndecimal) Converts the number n to a string, a$, with a given maximum width (width) and a specified number of decimals (ndecimal). Example: a$=val$(3.14,6,2) a$ will be " 3.14". There are a total of six characters - two spaces in front of the 3; 3,., 1 and 4. Two of these characters are after the decimal point. JOIN a$=JOlN$(b$,c$) Joins together strings b$ and c$ to form string a$. Example: b$ = "hello " c$ = "world" a$ = JOlN$(b$, c$) a$ will be "hello world". SUBSTR$ a$=SUBSTR$(b$,startpos,endpos) Extracts a substring from string b$. Startpos is the start position of the substring you want to extract and endpos is the end position. Example: a$=substr$("hello world",6,l0) a$ will be "world", because the start position is character 6 (w) and the end position is character 10 (d). Characters are numbered from 0 upwards. |