print

Description

Print the complete list of arguments to the standard output.

Syntax

number = print(...)

ParameterDescription
... List of objects to be printed.

Return Value

Returns the number of characters printed.

Remarks

Any argument that is not a string will be formatted automatically. Boolean values will be 'true' or 'false' and numbers will have up to 6 digits past the decimal. Most string functions may be binary safe, but this function _will_ terminate its output at the first \0 character.

Examples

The following example demonstrates how to print multiple objects.

print("Hello", "world.\n");

The following example gives the same output as above, but note that using + to concatenate the strings means that print only receives one argument.

print("Hello"+"world.\n");

See Also

io.print()