gasster@pacificnet.net writes: >I have been trying to determine the default sizes for >numerical data in Perl. I have MacPerl 5.07r1m on a Quadra 650. > >I would have thought the following: > >ints would be the same as a Long (4 bytes) by default? Yes. >But some simple tests don't seem to cause any overflow problems. That's because Perl tries to switch to floats when necessary (but not always successfully). >Bottom line: >What are the largest ints and floats you can represent in Perl Ints: -2^31 .. 2^31-1 Floats: roughly -10^308 .. 10^308, with about 15 decimal digits of accuracy Matthias ----- Matthias Neeracher <neeri@iis.ee.ethz.ch> http://www.iis.ee.ethz.ch/~neeri "One fine day in my odd past..." -- Pixies, _Planet of Sound_