Difference between revisions of "MC-Basic:STRL$"
(Created page with "{{MC-Basic |SHORT FORM= |SYNTAX= STRL$(''<number>'', ''<format_string>'') |AVAILABILITY= |DESCRIPTION= STRL$ returns the string representation of a number. |TYPE= ''<retu...") |
|||
Line 13: | Line 13: | ||
|TYPE= | |TYPE= | ||
''<return value>'': String<br> | ''<return value>'': String<br> | ||
− | ''<number>'': Long<br> | + | ''<number>'': Long, Double<br> |
''<format_string>'': String<br> | ''<format_string>'': String<br> | ||
|RANGE= | |RANGE= | ||
− | ''< | + | ''<number>'': 0 to MaxLong<br> |
− | ''< | + | ''<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 | ||
|UNITS= | |UNITS= | ||
Revision as of 13:47, 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