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<br>
+
''<format_string>'': a valid sprintf() integer format
                    %d, %i (signed decimal)<br>
+
 
                    %o (unsigned octal)<br>
 
                    %u (unsigned decimal) , %x
 
(unsigned hexadecimal)
 
, %c
 
unsigned octal (o), unsigned decimal (u), or unsigned hexadecimal
 
 
|UNITS=
 
|UNITS=
  
Line 46: Line 41:
 
* [[Axystems:MC-Basic:STR$|STR$]]
 
* [[Axystems:MC-Basic:STR$|STR$]]
 
* [[Axystems:MC-Basic:STRD$|STRD$]]
 
* [[Axystems:MC-Basic:STRD$|STRD$]]
 
+
* [[Axystems:MC-Basic:HEX$|HEX$]]
 +
* [[Axystems:MC-Basic:CHR$|CHR$]]
  
  
 
[[Category:Axystems:MC-Basic:String_Manipulation|STRL$]]
 
[[Category:Axystems:MC-Basic:String_Manipulation|STRL$]]
 
}}
 
}}

Revision as of 13:52, 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

Scope

Configuration, Task or Terminal

Limitations

Read only

Examples

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

See Also