Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: forcing output type
- X-seq: zsh-workers 15857
- From: Zefram <zefram@xxxxxxxx>
- To: Clint Adams <clint@xxxxxxx>
- Subject: Re: forcing output type
- Date: Sun, 23 Sep 2001 18:16:23 +0100
- Cc: zsh-workers@xxxxxxxxxx
- In-reply-to: <20010923121852.B16711@xxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <20010923114054.A16301@xxxxxxxx> <20010923164705.A15106@xxxxxxxx> <20010923121852.B16711@xxxxxxxx>
Clint Adams wrote:
>Would anyone object to something like $(( [#.] 2/3 )) to
>avoid integer truncation?
It's not a very clean way to do it -- it's changing the input language
for an expression, and doesn't inherently apply to the entire $(())
(unlike the existing "[#n]" output-base flag). It would be better to
localise it; say, "floatops{2/3}" as a subexpression.
But I wonder why you want to do this at all. What application do you
have in mind?
-zefram
Messages sorted by:
Reverse Date,
Date,
Thread,
Author