to_string

Function to_string 

Source
pub fn to_string(args: &[Value]) -> Result<Value, RuntimeError>
Expand description

将值转换为字符串

§功能

将任意类型的值转换为其字符串表示形式。

§参数

  • value: 要转换的值(任意类型)

§返回值

字符串类型的值

§示例

Set NUM 42
Set STR ToString(NUM)         # "42"
Println(ToString(True))       # "true"
Println(ToString([1, 2, 3]))  # "[1, 2, 3]"
Println(ToString(Null))       # "null"