[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Strange add results
- From: Alexey Malyshev <malma@...>
- Date: Sat, 20 Nov 2010 16:34:37 +0300
What's wrong with this code?
local i = 1
i = i + 0.2
i = i + 0.2
i = i + 0.2
i = i + 0.2
i = i + 0.2
print(i)
print(tostring( i ~= 2))
output:
2
true