9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: "Paul A. Patience" <paul-a.patience@polymtl.ca>
To: 9fans@9fans.net
Subject: Re: [9fans] Bug in print(2) g verb
Date: Thu, 28 Feb 2013 21:57:06 -0500	[thread overview]
Message-ID: <2808cb04ced9eeaed13c44b3b056ee8e@yourdomain.dom> (raw)
In-Reply-To: <CAKzdPgyBUn2v9f7ZVUPWZ7+7_jJ+An0Nnbd66qrrEbai99dFaw@mail.gmail.com>

Without the change, it should get
any example wrong. This is with
native Plan 9, though. Plan9port's
fltfmt.c is not the same, so it must
be working correctly.

term% cat foo.c
#include <u.h>
#include <libc.h>

void
main(void)
{
	print("%.5g\n", 12345.67890);
	exits(nil);
}
term% 8.out
12345.7



  reply	other threads:[~2013-03-01  2:57 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-02-28  2:49 Paul Patience
2013-03-01  0:08 ` Rob Pike
2013-03-01  2:57   ` Paul A. Patience [this message]
2013-03-01  4:54   ` Kurt H Maier
2013-03-01 15:30     ` Rob Pike
2013-03-01 15:58       ` Steve Simon
2013-03-01 17:38         ` Anthony Sorace
2013-03-01 22:53       ` Paul A. Patience
2013-03-03 17:33         ` erik quanstrom
2013-03-03 21:43           ` Richard Miller
2013-03-03 21:52             ` erik quanstrom
2013-03-03 18:54         ` [9fans] doing a native awk port (was Re: Bug in print(2) g verb) arnold
2013-03-03 19:04           ` Paul A. Patience
2013-03-03 19:08             ` erik quanstrom
2013-03-03 19:11               ` Kurt H Maier
2013-03-03 19:18                 ` erik quanstrom
2013-03-03 19:28                   ` Kurt H Maier
2013-03-03 19:31                     ` erik quanstrom
2013-03-03 19:35                       ` Kurt H Maier
2013-03-04  0:10                       ` Dan Cross
2013-03-04  0:39                         ` Kurt H Maier
2013-03-03 19:07           ` erik quanstrom
2013-03-03 21:29             ` Richard Miller
2013-03-03 21:38               ` erik quanstrom
2013-03-03 17:57       ` [9fans] Bug in print(2) g verb Paul A. Patience
2013-03-03 18:26         ` erik quanstrom
2013-03-03 17:46 Paul A. Patience

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

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

  git send-email \
    --in-reply-to=2808cb04ced9eeaed13c44b3b056ee8e@yourdomain.dom \
    --to=paul-a.patience@polymtl.ca \
    --cc=9fans@9fans.net \
    /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 NNTP newsgroup(s).