Bruce Momjian <bruce(at)momjian(dot)us> writes:> It ERANGE's only on Inf, not underflow? I would prefer:> else if (errno == ERANGE && !isinf(result))
No objection to that, just don't take out the ERANGE test altogetheragain ;-)
regards, tom lane