From 16848d83a53f0dcf8fd6cf16eb6eb2c29520a07e Mon Sep 17 00:00:00 2001 From: rxi Date: Sat, 15 Aug 2015 11:37:32 +0100 Subject: [PATCH] Fixed number printing in lume.trace for Lua5.3 --- lume.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lume.lua b/lume.lua index e51e97e..33e5fce 100644 --- a/lume.lua +++ b/lume.lua @@ -639,7 +639,7 @@ function lume.trace(...) for i = 1, select("#", ...) do local x = select(i, ...) if type(x) == "number" then - x = tonumber(lume.round(x, .01)) + x = string.format("%g", lume.round(x, .01)) end t[#t + 1] = tostring(x) end