MC-Basic:STRL$

From SoftMC-Wiki
Revision as of 08:21, 20 March 2014 by Nurit (talk | contribs)
Jump to: navigation, search

STRL$ returns the string representation of long-type number.

Syntax

STRL$(<number>, <format_string>)

Type

<return value>: String
<number>: Long, Double (implicitly converted to Long)
<format_string>: String

Range

<number>: MinLong to MaxLong
<format_string>: a valid sprintf() integer format - %d, %i, %u, %o, %x, %X, %c

Scope

Configuration, Task or Terminal

Limitations

Read only

Examples

-->PRINT STRL$(60, "%d")
60 (singned decimal)
-->PRINT STRL$(60,"%o")
74 (unsigned octal)
-->PRINT STRL$(60,"%x")
3c (unsigned hexadecimal)
-->PRINT STRL$(60,"%c")
< (unsigned char)

See Also