It would freeze.
Or it would just continue execution as ever never happened (and result value would be completly random).
Seriously - If I were to get a computer which had absolutely NO error handling whatsoever, and I told it to divide by zero, what would happen?
Common sense no longer applies.
It would freeze.
Or it would just continue execution as ever never happened (and result value would be completly random).
lets say u divided 10 by 0. to me the answer is 0 or 10. 0 cuz u dont give anything out and 10 cuz u still hav 10 left wen u give nothing out. if those pics are real then its time i stop using vsIt would freeze.
Or it would just continue execution as ever never happened (and result value would be completly random).[/b]
ive got 2 tickets to paradise..in my pants.You put the plug in the socket.
According to Microsoft, you can't. XD
Many aspects of Garry's Mod are hardly the pinnical of realisim.
Um, are you crazy or something.lets say u divided 10 by 0. to me the answer is 0 or 10. 0 cuz u dont give anything out and 10 cuz u still hav 10 left wen u give nothing out. if those pics are real then its time i stop using vs[/b]
X / 0 = +Infinity or -Infinity, and because of fact that Real number division cant have 2 results, in real number space there is no result for X/0
(Double Shoop!)X / 0 = +Infinity or -Infinity, and because of fact that Real number division cant have 2 results, in real number space there is no result for X/0[/b]
Many aspects of Garry's Mod are hardly the pinnical of realisim.
Um, are you crazy or something. +X/0 = +infinity, -X/0 = -infinity, 0/0 is undefined. There's nothing wrong with 2 results for computers because they can either return both or more commonly return a preselected one of the results. Computers simply don't usually have a representation of infinity, so there return an error instead. Some languages have special constructs to allow infinity to be returned but then there isn't much you can do with the result that's worth while.Um, are you crazy or something.
X / 0 = +Infinity or -Infinity, and because of fact that Real number division cant have 2 results, in real number space there is no result for X/0[/b]
Without error checks it would simply not know what to return. A fully functional language would get stuck in an infinite loop and run out of memory.
Edit: If two results was a problem then sqrt wouldn't work either.
If in doubt, stick your finger in it.
Erkle saves the day for great justice!
Read me again, I said "It has no result", aka its undefined.Um, are you crazy or something. +X/0 = +infinity, -X/0 = -infinity, 0/0 is undefined. There's nothing wrong with 2 results for computers because they can either return both or more commonly return a preselected one of the results. Computers simply don't usually have a representation of infinity, so there return an error instead. Some languages have special constructs to allow infinity to be returned but then there isn't much you can do with the result that's worth while.
Without error checks it would simply not know what to return. A fully functional language would get stuck in an infinite loop and run out of memory.
Edit: If two results was a problem then sqrt wouldn't work either.[/b]
Also computers have representation for NaN and INF (not a number and infinity), and they use it (for floating point). I think IND is present too, but now always.
Bookmarks