DivideByZeroException and floating points
i was experimenting with ExpectedException attribute of NUnit when i noticed that a DivideByZeroException was not thrown when a division by zero was done within variables of type double. instead, i got a PositiveInfinity quotient for my sample routine so I consulted the docs and it was another IEE standard issue (same as banker's rounding).
DivideByZeroException will only be thrown for int, decimal and all non-floating point numerical value types.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemdividebyzeroexceptionclasstopic.asp