From owner-freebsd-questions Thu Apr 6 14:41: 9 2000 Delivered-To: freebsd-questions@freebsd.org Received: from axl.ops.uunet.co.za (axl.ops.uunet.co.za [196.31.1.175]) by hub.freebsd.org (Postfix) with ESMTP id 1544D37BC97 for ; Thu, 6 Apr 2000 14:40:57 -0700 (PDT) (envelope-from sheldonh@axl.ops.uunet.co.za) Received: from sheldonh (helo=axl.ops.uunet.co.za) by axl.ops.uunet.co.za with local-esmtp (Exim 3.13 #1) id 12dK14-0001Xt-00; Thu, 06 Apr 2000 23:40:42 +0200 From: Sheldon Hearn To: cjclark@home.com Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Comparing Floats in a /bin/sh Script In-reply-to: Your message of "Thu, 06 Apr 2000 12:08:44 -0400." <20000406120827.A4198@cc942873-a.ewndsr1.nj.home.com> Date: Thu, 06 Apr 2000 23:40:42 +0200 Message-ID: <5944.955057242@axl.ops.uunet.co.za> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Thu, 06 Apr 2000 12:08:44 -0400, "Crist J. Clark" wrote: > I want to compare two floating point numbers in a /bin/sh script. I > cannot seem to find an easy way to do so. The best I've come up with > is, /bin/sh is not suited to floating point manipulation of any kind. You're going to save yourself a lot of pain using one of the more feature-rich languages like perl. And trust me, I'm not a perl push-over. If I can do it using /bin/sh instead of perl without breaking my own fingers, I will. :-) Obviously, you'd use whatever high level scripting language you're most comfortable. Ciao, Sheldon. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message