STR$
Root / Documentation / [.]
Created:
Convert a number to a string.
* Syntax
```sbsyntax
STR$ number# {, length% } OUT string$
```
|* Input | Description |
| `number#` | An integer or real number to convert into a string. |
| `length%` | The *minimum* length of the returned string, in characters. Optional |
|* Output | Description |
| `string$` | The string representation of `number#`. |
If `length%` is specified, the returned string is right-aligned with space characters until it is `length%` characters long. If the returned string's length is equal to or greater than `length%`, then it is not modified.
* Examples
```
VAR SCORE=10
PRINT "SCORE: "+STR$(SCORE)
```
No posts yet (will you be the first?)