From owner-freebsd-questions@FreeBSD.ORG Tue Mar 2 23:29:33 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E8EB016A4CE for ; Tue, 2 Mar 2004 23:29:33 -0800 (PST) Received: from smtp.infracaninophile.co.uk (smtp.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3381F43D3F for ; Tue, 2 Mar 2004 23:29:33 -0800 (PST) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [IPv6:::1]) i237TG1B011593 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 3 Mar 2004 07:29:16 GMT (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost)id i237TGDt011592; Wed, 3 Mar 2004 07:29:16 GMT (envelope-from matthew) Date: Wed, 3 Mar 2004 07:29:16 +0000 From: Matthew Seaman To: Wayne Sierke Message-ID: <20040303072916.GD96929@happy-idiot-talk.infracaninophile.co.uk> Mail-Followup-To: Matthew Seaman , Wayne Sierke , freebsd-questions@freebsd.org References: <1078286126.666.11.camel@ovirt.dyndns.ws> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="fOHHtNG4YXGJ0yqR" Content-Disposition: inline In-Reply-To: <1078286126.666.11.camel@ovirt.dyndns.ws> User-Agent: Mutt/1.5.6i X-Spam-Status: No, hits=-4.9 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=2.63 X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on happy-idiot-talk.infracaninophile.co.uk cc: freebsd-questions@freebsd.org Subject: Re: Size of variables in awk X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Mar 2004 07:29:34 -0000 --fOHHtNG4YXGJ0yqR Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Mar 03, 2004 at 02:25:27PM +1030, Wayne Sierke wrote: > It seems I've run into the 32-bit signed number wall in awk > (5.2-RELEASE). >=20 > My totals are maxing out at 2147483648. >=20 > Would anyone happen to know whether that's really the case (that awk is > only implemented with 32-bit number capability - unfortunately I don't > have any other awks nearby to verify nor can I find any reference info > that indicates) and/or can suggest a way around it? Use perl instead? Perl should switch from an integer to a floating point representation internally if it runs over MAXINT. You should be able to use a2p(1) to automatically convert your awk code into perl. Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way PGP: http://www.infracaninophile.co.uk/pgpkey Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK --fOHHtNG4YXGJ0yqR Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFARYlMdtESqEQa7a0RAuVzAJ90NA6Mkt3E5/eMLtFjx30fBjblYACePl+f QxWxMnnXZH4r70Fu8ISYnYE= =EvRC -----END PGP SIGNATURE----- --fOHHtNG4YXGJ0yqR--