Date: Tue, 11 Jan 2000 11:50:37 +0200 From: Sheldon Hearn <sheldonh@uunet.co.za> To: dl@tyfon.net Cc: "[FreeBSD-Questions-List] (E-post)" <freebsd-questions@FreeBSD.ORG> Subject: Re: mathematics in sh Message-ID: <99240.947584237@axl.noc.iafrica.com> In-Reply-To: Your message of "Tue, 11 Jan 2000 09:49:28 %2B0100." <01BF5C19.27B849F0.dl@tyfon.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 11 Jan 2000 09:49:28 +0100, Dan Larsson wrote: > Is it possible to do mathematical ( simple calculations such as > ($a + $b)/$c) calculations in sh? > Or is perl better to use in this case? Perl's better if you need floating point values. But for simple integer arithmetic, /bin/sh works fine. See the Arithmetic Expansion section of the sh(1) manual page. Ciao, Sheldon. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?99240.947584237>