Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Floating point math wish



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