Tostring

From ComputerCraft Wiki
Revision as of 10:02, 25 July 2012 by TheProgrammerInLua (Talk | contribs) (os.toString)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

The ToString function is very common function through out programming languages. The use of this function is just to take an integer and turn it into a string. The opposite of this function is ToInteger.'

Example Use: A Lua Clock

time = os.getTime() TimeString = os.toString(time)

print(time)

Corrections and critism accepted!!