STR$

BASin

STR$ STRing

Function

STR$ converts a number into a string.

How to use STR$

STR$ is followed by a numeric value, for example

90 LET a$=STR$ x

An expression must be enclosed in brackets. STR$ returns the value of its argument (x above) as a string constant. If x were assigned the value of 65, then the above statement assigns a$ the value "65".

Format

  • STR$ num-const
  • STR$ num-var
  • STR$ (num-expr)

See also

Chapter 9.