Returns a string representation of a value


See also Lua library functions.

Signature:

stringValue = tostring(value)

Arguments:

  • value - Any value (value)

Returns:

  • stringValue - String representation of the given value (if value is an object with a __tostring metamethod, that method is used to produce the string representation) (string)
This function is defined in the Lua standard libraries