Yes, this is Math::BigFloat's way of telling you that you're giving it an invalid numeric string. As I said before, at least one line in your test data does not have any significant digits before the exponent part. You might check to see how that entry was created, but it's easy enough to work around it in your code: