I'm down crazy (angry) with lua tonight:
Output:
function func1() LOG(var1); LOG(var2); LOG("type var1 is ".. type(var1)); LOG("type var2 is ".. type(var2)); LOG("var1 - var2 = ".. (var1 - var2)); if var1 == var2 then LOG("EQ"); else LOG("NEQ"); end
Output:
Code:
Log: [02:05:47] 0.8
Log: [02:05:47] 0.8
Log: [02:05:47] type var1 is number
Log: [02:05:47] type var2 is number
Log: [02:05:47] var1 - var2 = -1.1102230246252e-16
Log: [02:05:47] NEQ