Archive for category .NET
What happens when you divide by Zero?? Think again :P
Posted by Kinnar Shah in .NET, Technology on October 19, 2009
Came across this gem in Eric Clippert’s blog…
User: Recently I found out about a peculiar behaviour concerning division by zero in floating point numbers in C#. It does not throw an exception, as with integer division, but rather returns an “infinity”. Why is that?
