函数:tostring 将数字转成字符串

函数名称:将数字转成字符串

函数名称:将数字转成字符串

函数方法

str = tostring(num)

参数 类型 必填 说明
num number 需要转换的数字
返回值 类型 说明
str string/nil 转换后的字符串

函数示例

num=111
str = tostring(num)
dialog("转换后的内容:"..str.."\r\n".."数据类型:"..type(str),5)
Copyright 北京帮你玩科技有限公司 2023 all right reserved,powered by Gitbook该文章修订时间: 2024-03-06 17:50:18

results matching ""

    No results matching ""