【发布时间】:2018-10-02 21:19:52
【问题描述】:
我已经看到很多将字符串转换为整数的答案,但是如何将整数转换为字符串呢?当我尝试microseconds.toString() 时出现以下错误:attempt to index upvalue 'microseconds' (a number value)
请注意,这是在运行 os 4.5.0.1180 的 ti-nspire 上
感谢您提供的任何帮助!
【问题讨论】:
-
尝试字符串(微秒)
-
... 或
string.format("%d", microseconds)但在串联"foo" .. microseconds中,数字应强制转换为字符串。
标签: string types lua integer ti-nspire