Reply to Re: maximum integer size?

Your name:

Reply:


Posted by Michael Austin on 02/16/06 23:50

Michael wrote:
> In answer to you linux time out problem, run it on the command line
> then it wont turn out. This command should do the trick I think: php -a
> [file path, not remote path].
>
> I think the length of the integer is dependant on the number of bits
> the computer is so 32bit or 64 bit. You are running a 32bit computer,
> yes? So 32 squared (1024) is the length, whereas if you were using
> 64bit then it would be 64 squared (4096)
>

Since you are requesting this in the PHP newsgroup, a search for INTEGER in the
PHP docs yields:

http://us2.php.net/intval

"The maximum value depends on the system. 32 bit systems have a maximum signed
integer range of -2147483648 to 2147483647. So for example on such a system,
intval('1000000000000') will return 2147483647. The maximum signed integer value
for 64 bit systems is 9223372036854775807."


Another point is that may have more to do with the OS you are on. So, if you
are running a 32bit OS on a 64bit CPU, the max integer value will still be
2147483647. It really has more to do with the compilers, math libraries and OS
limitations as well as those of the cpu type.

--
Michael Austin.
Consultant
Donations welcomed. Http://www.firstdbasource.com/donations.html
:)

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация