zub74
|
  |
| Joined: 13 Sep 2008 |
| Total Posts: 489 |
|
|
| 31 May 2014 12:18 PM |
for i=1,0, -0.1 do print(i) end
Was testing that out for a script to lower transparency, but instead of ending with 0, it ended with 1.3877787807814e-016. Any particular reason? |
|
|
| Report Abuse |
|
|
zub74
|
  |
| Joined: 13 Sep 2008 |
| Total Posts: 489 |
|
|
| 31 May 2014 12:23 PM |
Same thing happens with local i = 1 while i > 0 do print(i.." > 0") i = i - 0.1 end print (i.." = 0")
Why? |
|
|
| Report Abuse |
|
|
|
| 31 May 2014 12:24 PM |
for i=1,0, -0.1 do print(i) wait(1) end |
|
|
| Report Abuse |
|
|
zub74
|
  |
| Joined: 13 Sep 2008 |
| Total Posts: 489 |
|
|
| 31 May 2014 12:25 PM |
| Throwing in a wait does the same thing. |
|
|
| Report Abuse |
|
|
|
| 31 May 2014 12:27 PM |
Your studio is wierd then Mine works |
|
|
| Report Abuse |
|
|
zub74
|
  |
| Joined: 13 Sep 2008 |
| Total Posts: 489 |
|
|
| 31 May 2014 12:33 PM |
| Suppose it doesn't really matter |
|
|
| Report Abuse |
|
|