I am new to Lua so sorry if this is very trivial but I cannot seem to get the math functions to work.
I have a number stored as a variable and I want to truncate it and display the truncated result.
Below is my example code:
function OnMsg.NewHour()
local Var_a = 1234.567
local Var_b = math.floor (Var_a)
AddCustomOnscreenNotification ("NewMSG", My Truncated Variable", Var_b)
end
Nothing gets displayed.
What am I doing wrong?
Also, can you declare Constants? I can't seem to find anything about that.
Thanks so much,
Noah
I have a number stored as a variable and I want to truncate it and display the truncated result.
Below is my example code:
function OnMsg.NewHour()
local Var_a = 1234.567
local Var_b = math.floor (Var_a)
AddCustomOnscreenNotification ("NewMSG", My Truncated Variable", Var_b)
end
Nothing gets displayed.
What am I doing wrong?
Also, can you declare Constants? I can't seem to find anything about that.
Thanks so much,
Noah