a calculator gives : 2ˆ30 = 1073741824. The webpage is wrong. (you can see it problem between 2^23 and 2^24)
a int is obviouslly from range -(2^31)-1 to (2^31)-1
this is about from -2*10^9 to 2*10^9
cheers
Le 05/07/2019 à 00:42, Alexandre Torres Porres a écrit :
>
>
> Em qui, 4 de jul de 2019 às 13:54, Roman Haefeli <reduzent@gmail.com <mailto:reduzent@gmail.com>> escreveu:
>
>
> >>> +2147483648 :-)
> >> Ha yeah! Wrote that in a rush, of course I meant 2^31 :*)
> > but that's 2ˆ30 ;)
>
> You sure?
>
>
> no, but a google search led me to this: http://potenciasde2.blogspot.com/
>
> 2ˆ30 = 2 147 483 648
>
> :/
>
> so I assumed int goes from -2147483648 to +2147483647 for being in a range of 2ˆ31
>
> _______________________________________________
> Pd-dev mailing list
> Pd-dev@lists.iem.at
> https://lists.puredata.info/listinfo/pd-dev
>
_______________________________________________
Pd-dev mailing list
Pd-dev@lists.iem.at
https://lists.puredata.info/listinfo/pd-dev