unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
From: Marius Vollmer <marius.vollmer@uni-dortmund.de>
Subject: Re: format ~@d +0
Date: Tue, 24 Aug 2004 19:33:31 +0200	[thread overview]
Message-ID: <lj7jrofnkk.fsf@troy.dt.e-technik.uni-dortmund.de> (raw)
In-Reply-To: <87fz6er7o5.fsf@zip.com.au> (Kevin Ryde's message of "Mon, 23 Aug 2004 10:59:22 +1000")

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


      reply	other threads:[~2004-08-24 17:33 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-08-23  0:59 format ~@d +0 Kevin Ryde
2004-08-24 17:33 ` Marius Vollmer [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=lj7jrofnkk.fsf@troy.dt.e-technik.uni-dortmund.de \
    --to=marius.vollmer@uni-dortmund.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).