lua-l archive
[
Date Prev
][
Date Next
][
Thread Prev
][
Thread Next
] [
Date Index
] [
Thread Index
]
Subject
:
Strange behavior with for loop
From
: Christophe Devalland <christophe.devalland@
...
>
Date
: Sun, 8 May 2016 18:56:46 +0200
Hi,
this code :
for i=-0.5,0.5,0.2
do
print(i)
end
gives me :
-0.5
-0.3
-0.1
0.1
0.3
Why not 0.5 ?
Thanks
Follow-Ups
:
Re: Strange behavior with for loop
,
Coda Highland
Re: Strange behavior with for loop
,
Peter Cawley
Prev by Date:
Re: When does lua_pushstring() fail (if at all)?
Next by Date:
Re: Strange behavior with for loop
Previous by thread:
Re: When does lua_pushstring() fail (if at all)?
Next by thread:
Re: Strange behavior with for loop
Index(es):
Date
Thread