Computercraft removed a subset of LUA 5.1
"Added a config option to disable parts of the Lua 5.1 API which will be removed when a future Lua version upgrade happens."
in Line 237
local exponent = math.floor(math.log10(num)) doesnt work.
for CC >= 1.74
local exponent = math.floor(math.log(num,10))
or set
B:disable_lua51_features=false in Computercraft.cfg
Computercraft removed a subset of LUA 5.1 "Added a config option to disable parts of the Lua 5.1 API which will be removed when a future Lua version upgrade happens."
in Line 237
local exponent = math.floor(math.log10(num))
doesnt work. for CC >= 1.74local exponent = math.floor(math.log(num,10))
or set
B:disable_lua51_features=false
in Computercraft.cfg