Re: Size of variables in awk

2004-03-03 Thread Dan Nelson
In the last episode (Mar 04), Wayne Sierke said: > On Thu, 2004-03-04 at 02:48, Dan Nelson wrote: > > In the last episode (Mar 03), Wayne Sierke said: > > > I'm using the printf function in awk but something ain't right: > > > > > > # jot 4 30 | awk '{ printf("%u\n", 2^$1-1) }' > > > 2147483648 >

Re: Size of variables in awk

2004-03-03 Thread Wayne Sierke
On Thu, 2004-03-04 at 02:48, Dan Nelson wrote: > In the last episode (Mar 03), Wayne Sierke said: > > On Wed, 2004-03-03 at 18:34, Dan Nelson wrote: > > > 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). > >

Re: Size of variables in awk

2004-03-03 Thread Dan Nelson
In the last episode (Mar 03), Wayne Sierke said: > On Wed, 2004-03-03 at 18:34, Dan Nelson wrote: > > 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. > > > >

Re: Size of variables in awk

2004-03-03 Thread Wayne Sierke
On Wed, 2004-03-03 at 18:34, Dan Nelson wrote: > 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 (

Re: Size of variables in awk

2004-03-03 Thread Dan Nelson
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

Re: Size of variables in awk

2004-03-02 Thread Matthew Seaman
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). > > 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 numbe