Ewan Young <kdbase(dot)hack(at)gmail(dot)com> writes:
> Right. v2 attached, which handles a NaN or infinite width (whether
> from an overflow or
> an actual infinite bound) up front, so ds = us - os only runs when us is
> finite.
Pushed with some cosmetic adjustments, mostly revising the comments.
regards, tom lane