[PD-dev] what's the maximum list size?

cyrille henry ch at chnry.net
Fri Jul 5 19:02:09 CEST 2019


sorry, I should not reply to this list so early in the morning.


Le 05/07/2019 à 18:44, Alexandre Torres Porres a écrit :
> yeah, I know, I was just pointing how I got misled :/
> 
> next time: don't be lazy to use a calculator
> 
> Em sex, 5 de jul de 2019 às 06:03, cyrille henry <ch at chnry.net <mailto:ch at chnry.net>> escreveu:
> 
>     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 at gmail.com <mailto:reduzent at gmail.com> <mailto:reduzent at gmail.com <mailto:reduzent at 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 at lists.iem.at <mailto:Pd-dev at lists.iem.at>
>      > https://lists.puredata.info/listinfo/pd-dev
>      >
> 
> 
> 
>     _______________________________________________
>     Pd-dev mailing list
>     Pd-dev at lists.iem.at <mailto:Pd-dev at lists.iem.at>
>     https://lists.puredata.info/listinfo/pd-dev
> 
> 
> _______________________________________________
> Pd-dev mailing list
> Pd-dev at lists.iem.at
> https://lists.puredata.info/listinfo/pd-dev
> 





More information about the Pd-dev mailing list