Changes

Locomotive BASIC

454 bytes added, 18:38, 28 May 2012
/* STR$(n) */
: Returns the string representation of number n.
: Useful for converting a number to a string in case of string manipulation. E.g. after converting a figure to a string then the most left character holds the sign: a minus in case the figure is negative and a space in case the figure is positiv.
: Example:
<pre>
10 FIGURE=-1599
20 FIGURE$=STR$(FIGURE)
30 PRINT FIGURE$
-1599
 
10 FIGURE=1769
20 FIGURE$=STR$(FIGURE)
30 PRINT FIGURE$
1769
</pre>
:(there's a blank on the left-hand of the number "1769")
==== <code>STRING$</code> ====
205
edits