[Glass] Negative infinity and positive infinity have the same sign

Martin McClure via Glass glass at lists.gemtalksystems.com
Thu Jan 26 18:48:46 PST 2017


On 01/26/2017 06:16 PM, monty via Glass wrote:
> Looks like you're correct; Pharo has the bug, not GS. All I really wanted was to distinguish +/- 0, so your fix will do. But be aware that ANSI Smalltalk also defines #negated in terms of ISO 10967's 'neg', which returns -0.0 for 0.0 and 0.0 for -1.0, so #sign or other such disparities between +/- 0 are not obviously wrong.
>
I agree, and we do handle #negated correctly, AFAICT. We welcome reports
if you find any place where we do not do things correctly -- we made an
effort to clean up the finer points of numerics several years ago, but
it's always possible we missed something.

Regards,

-Martin



More information about the Glass mailing list