No, it's certainly *not* the same as C ints, and it's not necessarely directly related to size of registers on the hardware. For internal integers, you can get 32 bit or 64 bit integers (or perhaps even 128 bit integers) if your C compiler supports it.

But under normal conditions, Perl (the language) doesn't have integers. It has numerical values. They may internally represented by integers, but if the need arises, they are seemlessly upgraded to floats. And you need to jump to some hoops to find out the internal representation. The precision of floats may vary from platform to platform, but it's typically 64 bits. This means that if your perl uses 32 bit integers internally, Perl (the language) still is able to deal with integer numbers of around 53 bits without losing precision.

Abigail


In reply to Re: about int's by Abigail-II
in thread about int's by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.