I learnt a long time ago (probably in Fortran) that it's always a good 
idea to check the value of a divisor before you use it in a division. 
Now doing that comes as second nature.

In Ruby I'd raise an exception. Or if I'm actually expecting to get a 
lot of zeroes and they're not really errors but valid data (e.g. someone 
has used them to mark incomplete data or similar) then I'd take 
appropriate action in place.

Relying on IEEE results is likely to cause problems downstream, so it's 
best to catch these things at the earliest opportunity IMHO. (A bit like 
checking for null pointers in C.)

Dave
-- 
Posted via http://www.ruby-forum.com/.