Difference between revisions of "MC-Basic:STRL$"

From SoftMC-Wiki
Jump to: navigation, search
Line 18: Line 18:
 
|RANGE=
 
|RANGE=
 
''<number>'': 0 to MaxLong<br>
 
''<number>'': 0 to MaxLong<br>
''<format_string>'': a valid sprintf() integer format %d, %i (signed decimal), %o (unsigned octal ), %u (unsigned decimal) , %x
+
''<format_string>'': a valid sprintf() integer format<br>
 +
                    %d, %i (signed decimal)<br>
 +
                    %o (unsigned octal)<br>
 +
                    %u (unsigned decimal) , %x
 
(unsigned hexadecimal)  
 
(unsigned hexadecimal)  
 
, %c
 
, %c

Revision as of 13:49, 19 March 2014

STRL$ returns the string representation of a number.

Syntax

STRL$(<number>, <format_string>)

Type

<return value>: String
<number>: Long, Double
<format_string>: String

Range

<number>: 0 to MaxLong
<format_string>: a valid sprintf() integer format

                    %d, %i (signed decimal)
 %o (unsigned octal)
 %u (unsigned decimal) , %x

(unsigned hexadecimal) , %c unsigned octal (o), unsigned decimal (u), or unsigned hexadecimal

Scope

Configuration, Task or Terminal

Limitations

Read only

Examples

-->I1=12345
-->PRINT STR$(i1)+"A"
12345A

See Also