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

From SoftMC-Wiki
Jump to: navigation, search
m (Miborich moved page Axystems:MC-Basic:STRL$ to MC-Basic:STRL$: Global renaming of Axystems: namespace into (Main):)
Line 55: Line 55:
 
<  
 
<  
 
|SEE ALSO=
 
|SEE ALSO=
* [[Axystems:MC-Basic:VAL|VAL]]
+
* [[MC-Basic:VAL|VAL]]
 
* [[MC-Basic:STR$|STR$]]
 
* [[MC-Basic:STR$|STR$]]
 
* [[MC-Basic:STRD$|STRD$]]
 
* [[MC-Basic:STRD$|STRD$]]

Revision as of 08:43, 22 May 2014

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

Syntax

STRL$(<number>, <format_string>)

Type

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

IMPORTANT.svgIMPORTANT

A double-type input is implicitly converted to long

Range

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

%d, %i - signed decimal
%u - unsigned decimal
%o - octal
%x, %X - hexadecimal 
%c - unsigned char
WARNING.svgWARNING
If an invalid format string is used, the behavior is undefined

Scope

Configuration, Task or Terminal

Limitations

Read only

Examples

-->PRINT STRL$(60, "%d")
60
-->PRINT STRL$(60,"%o")
74
-->PRINT STRL$(60,"%x")
3c
-->PRINT STRL$(60,"%c")
<

See Also