Forlapse
|
  |
| Joined: 07 Jan 2014 |
| Total Posts: 122 |
|
|
| 19 Jan 2014 10:07 PM |
a = 0 repeat a = a + 0.1 until a == 1 print("a equals to 1!")
If the script returns is infinitlty false, as in making a = a + 0, wouldnt that cause a crash because it is repeating so fast infinitly?
Im not sure on the technicallity. So would adding a small wait prevent some sort of lag that could lead to a crash? |
|
|
| Report Abuse |
|
|
|
| 19 Jan 2014 10:09 PM |
a will never be equal to 1. You cannot represent 0.1 in binary. This SHOULD work if you use 0.125, though.
You'll get a game freeze regardless, though, without a wait. |
|
|
| Report Abuse |
|
|
|
| 19 Jan 2014 10:11 PM |
Or in this case, use >=
Hi AFF :D Good to see you around. :P |
|
|
| Report Abuse |
|
|
|
| 19 Jan 2014 10:13 PM |
^ I've seen that posted twice. o_O Deja vu? |
|
|
| Report Abuse |
|
|
|
| 19 Jan 2014 10:16 PM |
| I did say hi before, you didn't answer. D: Am I not memorable? T_T |
|
|
| Report Abuse |
|
|
| |
|
|
| 19 Jan 2014 10:29 PM |
| I bet you don't remember me. :P Wow, 20k posts, I wonder where I would be at if I kept going like I was. xD |
|
|
| Report Abuse |
|
|
|
| 19 Jan 2014 10:30 PM |
Of course I remember you. You are one of the few people I enjoyed being around. |
|
|
| Report Abuse |
|
|
|
| 19 Jan 2014 10:31 PM |
| Now the question becomes, do you remember Spellshock2? |
|
|
| Report Abuse |
|
|
|
| 19 Jan 2014 10:33 PM |
Is that so? :P Glad to be reminded like that. *_*
Uhh no, don't think so, I have the (bad) habit of forgetting everyone, sorry? xD |
|
|
| Report Abuse |
|
|
|
| 19 Jan 2014 10:35 PM |
| How dare you forget such a glorious person. :( |
|
|
| Report Abuse |
|
|
|
| 19 Jan 2014 10:37 PM |
| Sorry? Are you 100% sure I knew them? Who are they anywhere? (Using unisex ... obviously.) |
|
|
| Report Abuse |
|
|
|
| 19 Jan 2014 10:38 PM |
| One of the frequents in N2KC's Roll Down the Hill in a Bubble. |
|
|
| Report Abuse |
|
|
|
| 19 Jan 2014 10:51 PM |
| You lost me, no idea what any of that is... |
|
|
| Report Abuse |
|
|
| |
|