Tom Lane writes:
> Accept and output '-Infinity' as well as 'Infinity', per long-ago
> suggestion from Ross Reedstrom. Still needs work to make those symbols
> convert to actual IEEE infinities (on machines where such things exist).
#ifdef INFINITY
val = INFINITY;
#else
elog?
#endif
Those who don't have INFINITY can define it in their port.h, like NAN.
1.0/0.0 should suffice.
--
Peter Eisentraut peter_e@gmx.net http://funkturm.homeip.net/~peter