Changed Float:NAN for 0.0/0.0. Ugly, but needed to support Ruby 1.8
Fixed criteria to determined if data cell was a number. Malav Bhavsar kindly provided a test case to detect the error, now it is working OK.