unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
* format ~@d +0
@ 2004-08-23  0:59 Kevin Ryde
  2004-08-24 17:33 ` Marius Vollmer
  0 siblings, 1 reply; 2+ messages in thread
From: Kevin Ryde @ 2004-08-23  0:59 UTC (permalink / raw)


ice-9 format ~@d prints positives with a "+" sign, but 0 is printed
without one.  I think this is contrary to CL, and it's not what ice-9
format does on floats with ~@f.

Although the code "(> number 0)" looks like no + on 0 is sort of
deliberate it seems to me a mistake that would be worth correcting.


_______________________________________________
Guile-devel mailing list
Guile-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/guile-devel


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: format ~@d +0
  2004-08-23  0:59 format ~@d +0 Kevin Ryde
@ 2004-08-24 17:33 ` Marius Vollmer
  0 siblings, 0 replies; 2+ messages in thread
From: Marius Vollmer @ 2004-08-24 17:33 UTC (permalink / raw)


Kevin Ryde <user42@zip.com.au> writes:

> ice-9 format ~@d prints positives with a "+" sign, but 0 is printed
> without one.  I think this is contrary to CL, and it's not what ice-9
> format does on floats with ~@f.

What is the sign of zero? ;) IEEE zeros do have a sign, so we should
print them.

> Although the code "(> number 0)" looks like no + on 0 is sort of
> deliberate it seems to me a mistake that would be worth correcting.

The Hyperspec isn't clear about this either, but Clisp prints
"+0"... hmmm.  The docs say that the sign is always printed, and the
canonical sign of zero is +, so we should print a "+".

Please make that change, then!


_______________________________________________
Guile-devel mailing list
Guile-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/guile-devel


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-08-24 17:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-08-23  0:59 format ~@d +0 Kevin Ryde
2004-08-24 17:33 ` Marius Vollmer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).