Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Rational numbers operation
- X-seq: zsh-users 14393
- From: tartifola@xxxxxxxxx
- To: zsh-users@xxxxxxxxxx
- Subject: Rational numbers operation
- Date: Wed, 16 Sep 2009 10:12:12 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:subject :message-id:reply-to:organization:x-mailer:mime-version:content-type :content-transfer-encoding; bh=ZxiCHzn25Qhz6TW5kAKLKGVyBzS5D0xhZEycvKpFdP8=; b=WzdWnl1Ob7U+PdR9zfa4B30UF0aKXfEetU5K7HaP1FLVQfQwc+d2tZU82LcRfcwjdv e8ps+h3wyQLSmrBH7yTiYvKTZUc5s4WemIfm6RoUEXUeXIbDUgfPoE9BhfxA4hLE4mVy AdkXxljRGBJGC73n4GmAxWvB3DxSNq95yTTfk=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:subject:message-id:reply-to:organization:x-mailer :mime-version:content-type:content-transfer-encoding; b=YLTzNsTVAn/f6WLSKEZ0az2INSOBVfrv8rp38E/AZ556GHV4Zgnfq1rlQoNpfMAqu0 Szx5/+in30EG0zHPdZqo0KNtkqQNLsGkphAJLN09NPP4vvYdAYuxr82WU99eU28/mMC4 gDkDzw8zuQab9BQM+HXuQiwxsaszonmuH5MRY=
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- Organization: Tartifola Inc.
- Reply-to: tartifola@xxxxxxxxx
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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author