Skip to content

Instantly share code, notes, and snippets.

@kaworun
Created January 23, 2013 11:59
Show Gist options
  • Save kaworun/4604802 to your computer and use it in GitHub Desktop.
Save kaworun/4604802 to your computer and use it in GitHub Desktop.
x = 100
y = 12.3456789
name = "hogehoge"
s = string.format("x: %-10d, y: %.4f, name: %s", x, y, name)
print(s)
--[[
left %-10~
right %10~
0 %010~
dot %.2~
]]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment