bug-guile
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: -0.0 treated as negative?


From: Bill Schottstaedt
Subject: Re: -0.0 treated as negative?
Date: Tue, 8 Jun 2010 02:49:17 -0700

> Let me know if I'm missing something here.

Independent of standards, it means your arithmetic is inconsistent:

scheme@(guile-user)> (= -0.0 0.0)
#t
scheme@(guile-user)> (= +inf.0 +inf.0)
#t
scheme@(guile-user)> (= 1.0 1.0)
#t
scheme@(guile-user)> (= (/ 1.0 0.0) +inf.0)
#t
scheme@(guile-user)> (= (/ 1.0 0.0) (/ 1.0 -0.0))
#f




reply via email to

[Prev in Thread] Current Thread [Next in Thread]