summaryrefslogtreecommitdiff
path: root/format.lua
diff options
context:
space:
mode:
authorAki <please@ignore.pl>2024-11-02 22:24:01 +0100
committerAki <please@ignore.pl>2024-11-02 22:24:01 +0100
commitcc77d7ccc034aecba64278e43112a61cf8c7f12c (patch)
tree61b107ba7a9c0b784f5ac8f655e23d1dc58fe4e7 /format.lua
parent1abde5fcd3fde372cdefdc6c967d680a2cc82410 (diff)
downloadnoita-eyes-cc77d7ccc034aecba64278e43112a61cf8c7f12c.zip
noita-eyes-cc77d7ccc034aecba64278e43112a61cf8c7f12c.tar.gz
noita-eyes-cc77d7ccc034aecba64278e43112a61cf8c7f12c.tar.bz2
Calculate delta bar IoC for 2-124 long periods
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