Implement printf, dprintf, string.format
This commit is contained in:
12
Docs/Lua-String-Formatting.md
Normal file
12
Docs/Lua-String-Formatting.md
Normal file
@@ -0,0 +1,12 @@
|
||||
# Lua String Formatting
|
||||
|
||||
Lua contains a builtin routine, string.format, which is similar to "printf."
|
||||
We have reimplemented this from scratch, adding a bunch of new formatting
|
||||
directives.
|
||||
|
||||
We have also added formatting routines that output to the
|
||||
console and the debug logs. The new routines are:
|
||||
|
||||
format(format_string, arg1, arg2, arg3...)
|
||||
dformat(format_string, arg1, arg2, arg3...)
|
||||
|
||||
Reference in New Issue
Block a user