MC-Basic:STRL$/zh-hans

From SoftMC-Wiki
< MC-Basic:STRL$
Revision as of 08:44, 28 April 2017 by Chi (talk | contribs) (Created page with "{{Languages}} == 缩写 == == 格式 == STRL$(<''number''>, <''format_string''>) == 适用版本 == == 描述 == STRL$的字符串表示形式返回长整型数字。 == ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
语言: English  • 中文(简体)‎

缩写

格式

STRL$(<number>, <format_string>)

适用版本

描述

STRL$的字符串表示形式返回长整型数字。

类型

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

IMPORTANT.svgIMPORTANT

双重输入隐式转换为long

取值范围

<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
假如使用一个无效的字符串格式是未定义的

单位

默认

使用范围

配置器,任务区,终端区

限制

只读

例子 =

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

参见