Tom Lane wrote: > Bruce Momjian <[EMAIL PROTECTED]> 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 altogether > again ;-)
Actually, when you return ERANGE, what is 'result'? Nan? Inf? finite? -- Bruce Momjian [EMAIL PROTECTED] EnterpriseDB http://www.enterprisedb.com + If your life is a hard drive, Christ can be your backup. + ---------------------------(end of broadcast)--------------------------- TIP 3: Have you checked our extensive FAQ? http://www.postgresql.org/docs/faq