tostring
From ComputerCraft Wiki
| Converts any passed object to it's string-representation. | |
| Syntax | tostring(Object o) |
| Returns | string representation of the Object o |
| Part of | ComputerCraft |
| API | none |
Examples
| Convert an number to a string | |
| Code |
local a = tostring(1) |
| Output | a = "1" (string) |
| Convert a number to a string | |
| Code |
local b = tostring(3.1415) |
| Output | b = "3.1415" (string) |