{{htmlmetatags>metatag-robots=()
metatag-title=(STR | ugBASIC User Manual)
metatag-keywords=(ugBASIC,Commodore 64,Commodore PLUS/4,ZX Spectrum)
metatag-description=(Manual page for STR)
metatag-media-og:image=(:ugbasic:logo-ugbasic-fb.png)
metatag-og:title=(STR | ugBASIC User Manual)
metatag-og:description=(Manual page for STR)
}}
====== ugBASIC User Manual ======
===== STR ✓ =====
===== SYNTAX =====
= STR(number)
==== PURPOSE ====
This function converts numbers into strings. This can be used to overcome some
limitations posed by functions which does not accept numbers as parameters,
but will work happily with parameters in the form of strings.
Also, when string adding is performed, all operand must be strings,
so this function is really useful.
==== EXAMPLE ====
x = STR(42)
See also the following example files:
* ''[[https://github.com/spotlessmind1975/ugbasic/tree/main/examples/strings_str_01.bas|strings_str_01.bas]]''
==== AVAILABLE ON ====
==== ANY PROBLEM? ====
If you have encountered a problem using this command, if you think there is a bug or the explanation is unclear, please [[https://github.com/spotlessmind1975/ugbasic/issues/new?title=ISSUE ON STR|open an issue]] for this keyword on GitHub. Thank you!===== POWERED BY =====
[[:ugbasic:user:index|{{ :ugbasic:user:logo-ugbasic.png?nolink&600 |}}]]