I read the manual hastily.
Sorry for message and thank you for perfect answer.
On my 32-bit system in Bash:
$ printf '%u\n' -1
18446744073709551615
$ echo $((2**63-1))
9223372036854775807
$ echo $((2**63))
-9223372036854775808
On Sat, Jan 1, 2011 at 11:48 AM, Stephane CHAZELAS
wrote:
> 2010-12-31, 11:33(-07), Bob Proulx:
> [...]
>> Your expressions above are overflowing th
Stephane CHAZELAS wrote:
> Bob Proulx wrote:
> [...]
> > Your expressions above are overflowing the value of your system's
> > maximum integer size. You can read the system's maximum integer size
> > using getconf.
> >
> > $ getconf INT_MAX
> > 2147483647
> [...]
>
> POSIX requires that arith
2010-12-31, 11:33(-07), Bob Proulx:
[...]
> Your expressions above are overflowing the value of your system's
> maximum integer size. You can read the system's maximum integer size
> using getconf.
>
> $ getconf INT_MAX
> 2147483647
[...]
POSIX requires that arithmetic expansion be using at l
n...@lavabit.com wrote:
> echo $((256**8))
> echo $((72057594037927936*128))
> echo $((1))
> etc.
Unless great effort is made to perform math in arbitrary precision
http://en.wikipedia.org/wiki/Arbitrary-precision_arithmetic
all computer
Configuration Information [Automatically generated, do not change]:
Machine: i686
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='i686'
-DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i686-pc-linux-gnu'
-DCONF_VENDOR='pc' -DLOCALEDIR='/us
uname output: Linux slax 2.6.2