From: Peter Stephenson <p.stephenson@samsung.com>
To: zsh-workers@zsh.org
Subject: Re: zcal bug
Date: Mon, 18 Mar 2013 16:05:50 +0000 [thread overview]
Message-ID: <20130318160550.14b4c1e1@pwslap01u.europe.root.pri> (raw)
In-Reply-To: <514738F4.8050001@sergio.spb.ru>
On Mon, 18 Mar 2013 19:55:32 +0400
sergio <mailbox@sergio.spb.ru> wrote:
> > printf %g format.
>
> Sorry, I confused it with %f.
I have to say it confused *me* working out what a sensible default was.
You really want something like a really calculator does, but that's (I
suppose, I don't know what the firmware looks like) presumably taking
some arbitrary number of significant figures that they've worked out
will be correct for the precision used internally. For a slightly more
general purpose programmer's tool like zcalc, sticking with the standard
formats available seemed a more obvious thing to do. %g looked like the
least worst option.
pws
prev parent reply other threads:[~2013-03-18 16:06 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-18 15:06 sergio
2013-03-18 15:37 ` Peter Stephenson
2013-03-18 15:42 ` Peter Stephenson
2013-03-18 15:55 ` sergio
2013-03-18 16:05 ` Peter Stephenson [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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20130318160550.14b4c1e1@pwslap01u.europe.root.pri \
--to=p.stephenson@samsung.com \
--cc=zsh-workers@zsh.org \
/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.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
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).