lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Hi,

why does this code not print "yo"?

---snip---
local x = 1.1
x = x + 0.1
if x == 1.2 then
print("yo")
end
---snap---

x is set to 1.2 but the if clause isn't entered. Can anybody explain why?

Tks,

Andreas