Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Rational numbers operation
- X-seq: zsh-users 14395
- From: tartifola@xxxxxxxxx
- To: Grigorios Bouzakis <grbzks@xxxxxxxxxx>
- Subject: Re: Rational numbers operation
- Date: Wed, 16 Sep 2009 10:43:24 +0200
- Cc: zsh-users@xxxxxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:cc:subject :message-id:in-reply-to:references:reply-to:organization:x-mailer :mime-version:content-type:content-transfer-encoding; bh=91VpR+EPueAS6vewBlJE24KKZW6bU17HrVenACSsH8o=; b=ITRoMOqJmyBtPxhtuY+ElLCoeDTVHZaWq9nB7cpxt7P8F8ITlqS3yyHLqLcqXmHcEP UgK8BHogwQDJ3WAWUO3eI8rZf5w744JQITw6d2b6rC3JTXh7Dguo6AA4PyyrhWkDZ8mR w6xhZ0BRsPXpLiKvySLsadUXcDFKaOlWn+Wjo=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:in-reply-to:references:reply-to :organization:x-mailer:mime-version:content-type :content-transfer-encoding; b=p1cSduSfQzfGBcmhfCVzsuWFCYFXuhIDrRkhGvyG8K4ghAdZQKkShk1AJ7nsSaRmpX plHVZ0GNWNDbhgPYFxWh7JFwICGeiMaqD6wkY9dy2VwZZWO/y3nUvCr6A6l+VB/AiLaZ fx9doNzkEMbZirm6FbQpYooXG/Dq8ns9yzmAk=
- In-reply-to: <20090916082130.GA3712@dark>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- Organization: Tartifola Inc.
- References: <20090916101212.40dc7009.tartifola@xxxxxxxxx> <20090916082130.GA3712@dark>
- Reply-to: tartifola@xxxxxxxxx
On Wed, 16 Sep 2009 11:21:30 +0300
Grigorios Bouzakis <grbzks@xxxxxxxxxx> wrote:
> On Wed, Sep 16, 2009 at 10:12:12AM +0200, tartifola@xxxxxxxxx wrote:
> >
> >
> > Hi,
> > a newbie question on operations with rational numbers with the zshell.
> > If I try from the shell
> >
> > >echo $((100.5 * 0.001 ))
> >
> > I got the correct result without any error. On the contrary if I try the same thing in script I get this error
> >
> > syntax error: invalid arithmetic operator (error token is ".5 * 0.001 ")
> >
> > I'm sure I'm missing something very basic, any hints?
> > Thanks
>
> You have to load zcalc. autoload -U zcalc
Thanks.
I put 'autoload -U zcalc' in my .zshrc but nothing has changed. I
probably misunderstood your suggestion. How should I ask my script to
load zcalc?
>
> --
> Greg
Messages sorted by:
Reverse Date,
Date,
Thread,
Author