Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: zcal bug
On Mon, 18 Mar 2013 19:06:48 +0400
sergio <mailbox@xxxxxxxxxxxxx> wrote:
> This is a bug, right?
>
> % zcalc
> $1 > 122114.671875
> 122115
> $2 >
>
> (I've received id as the result of 125045424.0 / 1024.0)
What do you think is the bug? That it's rounding to six decimal places?
As it says in the zshcontrib manual, that's the normal effect of the
printf %g format. If you want the output to have raw format, which
might show more decimal places than the actual precision, use :raw.
--
Peter Stephenson <p.stephenson@xxxxxxxxxxx> Principal Software Engineer
Tel: +44 (0)1223 434724 Samsung Cambridge Solution Centre
St John's House, St John's Innovation Park,
Cowley Road, Cambridge, CB4 0DS, UK
Messages sorted by:
Reverse Date,
Date,
Thread,
Author