Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Floating point math wish
- X-seq: zsh-workers 7019
- From: Peter Whaite <peta@xxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxx
- Subject: Floating point math wish
- Date: Wed, 07 Jul 1999 12:03:59 -0400
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
I havent been following the list too closely so my apologies in advance if
this topic has already been raised.
A nice feature of later versions of ksh (the version that comes with
UWIN for example), is the floating point arithmetic evaluation. For example
% echo $(( 1. / 2 )) # float math
0.5
% echo $(( 1/2 )) # fixed math when no floats
0
% echo $(( log(2) )) # math functions avaliable
0.69314718056
Wish zsh would do this.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author