Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: forcing output type
- X-seq: zsh-workers 15856
- From: Clint Adams <clint@xxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: Re: forcing output type
- Date: Sun, 23 Sep 2001 12:18:52 -0400
- In-reply-to: <20010923164705.A15106@xxxxxxxx>; from zefram@xxxxxxxx on Sun, Sep 23, 2001 at 04:47:05PM +0100
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <20010923114054.A16301@xxxxxxxx> <20010923164705.A15106@xxxxxxxx>
[moved to -workers]
> The expression "2/3" is a truncating integer division; its value is
> exactly 0. Just as in C, if you want to do a floating-point division
> you have to provide floating-point operands.
Would anyone object to something like $(( [#.] 2/3 )) to
avoid integer truncation?
Messages sorted by:
Reverse Date,
Date,
Thread,
Author