From owner-freebsd-questions@FreeBSD.ORG Wed Mar 3 00:04:09 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 DBBA816A4CE for ; Wed, 3 Mar 2004 00:04:09 -0800 (PST) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7C9A543D1D for ; Wed, 3 Mar 2004 00:04:09 -0800 (PST) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.12.10/8.12.10) id i23840ZF074634; Wed, 3 Mar 2004 02:04:00 -0600 (CST) (envelope-from dan) Date: Wed, 3 Mar 2004 02:04:00 -0600 From: Dan Nelson To: Wayne Sierke Message-ID: <20040303080359.GB79860@dan.emsphone.com> References: <1078286126.666.11.camel@ovirt.dyndns.ws> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1078286126.666.11.camel@ovirt.dyndns.ws> X-OS: FreeBSD 5.2-CURRENT X-message-flag: Outlook Error User-Agent: Mutt/1.5.6i 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 08:04:10 -0000 In the last episode (Mar 03), Wayne Sierke said: > It seems I've run into the 32-bit signed number wall in awk > (5.2-RELEASE). > > My totals are maxing out at 2147483648. > > 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? Seems to works fine on -current: $ jot 8 30 | awk '{ print 2^$1 }' 1073741824 2147483648 4294967296 8589934592 17179869184 34359738368 68719476736 137438953472 -- Dan Nelson dnelson@allantgroup.com