Re: Big numbers

From: Date: Wed, 11 Oct 2000 15:56:01 +0000
Subject: Re: Big numbers
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-34682@lists.php.net to get a copy of this message
PD>> operations, for example, eventually i++ doesn't do what you PD>> expect when i=10^300. In all scripts which are suffering from PD>> the problems you describe, This is small concern - you cannot expect numbers to be infinitely increasable. But you can expect that if you assign number to variable and do & with it you get sane result or error on some stage. PD>> the authors really want the number to remain as an integer. My They don't care. They want to get sane result or meaningful message. Most people couldn't care less what's internal representation is, once it works. Presently, it doesn't - that's the problem. And I would approach it from other side - not to autoconvert floats back to ints, especially when they don't fit signed int. -- Stanislav Malyshev stas@zend.com http://www.zend.com/ +972-3-6139665 ext.106

« previous php.dev (#34682) next »