Anti-nuisance lawsuit warning: The purpose of these notes is to remind me, Zoegond, of stuff or to help me work stuff out. They may contain mistakes.

Quick

  • ($a, $b....) = unpack("A2A7...", $packed)
  • push( array, list )

Wednesday, October 26, 2011

Perl and large integers

Trying to get a straight answer to the question 'What is the largest integer Perl can handle on Win32?' and failing, I decided to ask Perl, eventually ending up with the questions

perl -e "print 2**49+1"
perl -e "print -2**49-1"


and getting precise answers.

So on my 32-bit Windows the answer is "more than 2^49 and less than 2^50".

Followers

Blog Archive