summaryrefslogtreecommitdiff
path: root/format.lua
diff options
context:
space:
mode:
Diffstat (limited to 'format.lua')
-rw-r--r--format.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/format.lua b/format.lua
index 3a126a9..67379a8 100644
--- a/format.lua
+++ b/format.lua
@@ -10,6 +10,11 @@ function format.csv (tvalues)
end
+function format.float (float)
+ return string.format("%.5f", float)
+end
+
+
function format.ascii32 (tvalues)
local str = ""
for _, value in ipairs(tvalues) do