zsh-workers
 help / color / mirror / code / Atom feed
* Floating point math wish
@ 1999-07-07 16:03 Peter Whaite
  0 siblings, 0 replies; only message in thread
From: Peter Whaite @ 1999-07-07 16:03 UTC (permalink / raw)
  To: zsh-workers


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.



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1999-07-07 16:04 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-07-07 16:03 Floating point math wish Peter Whaite

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).