Difference between revisions of "Talk:Set"
Jump to navigation
Jump to search
imported>Omzy |
imported>TheImperialDragon |
||
Line 6: | Line 6: | ||
:Just found out that if you divide by zero in any script, the game will never run that script again. So, if I had two variables, x and y, and they constantly change and I want to find the ratio x / y, if y is 0 at any point, the script stops and never runs again (even in GameMode and ScriptEffectUpdate blocks). --[[User:Omzy|Omzy]] 01:49, 23 June 2006 (EDT) | :Just found out that if you divide by zero in any script, the game will never run that script again. So, if I had two variables, x and y, and they constantly change and I want to find the ratio x / y, if y is 0 at any point, the script stops and never runs again (even in GameMode and ScriptEffectUpdate blocks). --[[User:Omzy|Omzy]] 01:49, 23 June 2006 (EDT) | ||
::The reason for this is that anything divided by zero is (infinite/impossible?). If you've ever tried dividing any number by zero, the calculator displays ERROR. | |||
::When you think about it, it really is a mind-boggling question. How many times can nothing go into one, or one hundred? [[User:TheImperialDragon|The Imperial Dragon]] 12:20, 23 June 2006 (EDT) |
Revision as of 11:20, 23 June 2006
-- Grey: Doesn't the negative factor in the given example need to be in brackets?
--JOG 03:38, 17 April 2006 (EDT) No, you just need NO space between minus and variable. You need the space when you use the minus as operator, though. ("b+a" compiles, "b-a" doesn't, you need "b - a".)
What happens to the rest of the script when you divide by 0; does it continue processing or stop completely? --Omzy 01:42, 23 June 2006 (EDT)
- Just found out that if you divide by zero in any script, the game will never run that script again. So, if I had two variables, x and y, and they constantly change and I want to find the ratio x / y, if y is 0 at any point, the script stops and never runs again (even in GameMode and ScriptEffectUpdate blocks). --Omzy 01:49, 23 June 2006 (EDT)
- The reason for this is that anything divided by zero is (infinite/impossible?). If you've ever tried dividing any number by zero, the calculator displays ERROR.
- When you think about it, it really is a mind-boggling question. How many times can nothing go into one, or one hundred? The Imperial Dragon 12:20, 23 June 2006 (EDT)