LuaNET, the lua 5.1 api documentation!

Lua-Api

Core

[LUA 5.1] tostring

function tostring ( e )
Receives an argument of any type and converts it to a string in a reasonable format.
For complete control of how numbers are converted, use string.format.

If the metatable of e has a "__tostring" field, then tostring calls the corresponding value
with e as argument, and uses the result of the call as its result.

Comments

© 2007 DracoBlue :: Valid XHTML, CSS, RSS Powered by SMF 1.1.5 | SMF © 2006-2008, Simple Machines LLC | SourceNet © 2007, DracoBlue :: Page created in 0.401 seconds with 23 queries.