Re: bigger than 32 bit int (and signed!)
| From: | Rasmus Lerdorf | Date: | Sat, 30 Dec 2000 04:31:39 +0000 |
| Subject: | Re: bigger than 32 bit int (and signed!) | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-32315@lists.php.net to get a copy of this message | ||
The BCMATH and GMP extensions are there exactly for this.
-Rasmus
On Fri, 29 Dec 2000, jeremy brand wrote:
> > You could buy a 64-bit computer :-)
>
> <sarcasm continued="true">
> :) In that case, I would want 128bit nums... Either architechture, I
> want BIG INTS.
> </sarcasm>
>
> > Actually, that's not all in jest -- PHP keeps things simple, and uses the
> > builtin datatypes of C which are hardware-based for your INT size. So if
> > you*had* a 64-bit machine, PHP would be giving you 64-bit integers.
>
> I know.
>
> > I don't think the Developers are going to rush to add a lot of custom code
> > for 64-bit support when they know that in a few years the hardware will do
> > that automatically... But that's just a guess.
>
> Well, that was my oppinion too, but I was hoping someone who KNEW
> would answer this.
>
> > This would probably better addressed by reading the TODO list to see if
> > 64-bit support is there, and then hanging out on PHP-DEV list and asking
> > around there. (Check the archives first, of course)
>
> I thought I would start in general, since some developers hang here,
> that is my plan.
>
> However, thanks for the friendly reply!
>
> Jeremy
>
> Jeremy Brand :: Sr. Software Engineer :: 408-245-9058 :: jeremy@nirvani.net
> http://www.JeremyBrand.com/Jeremy/Brand/Jeremy_Brand.html for
> more
> Get your own Free, Private email at http://www.smackdown.com/
> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
> "<body>" -- Quoted from Yahoo! homepage,
> http://www.yahoo.com
>
>
> >
> > ----- Original Message -----
> > From: jeremy brand <jeremy@nirvani.net>
> > Newsgroups: php.general
> > Sent: Thursday, December 28, 2000 3:03 PM
> > Subject: [PHP] bigger than 32 bit int (and signed!)
> >
> >
> > > Are there plans to do double precision numbers in PHP? The reason I
> > > ask is that I use MySQL a lot, and they support INT:32 bits (signed
> > > and not) and also BIGINT: 64 bits (signed and not).
> > >
> > > It would be really nice to have larger number support in PHP. BC math
> > > is a nice hack (but limited to what you can do), but it would be truly
> > > nice to have large and unsigned numbers in PHP.
> > >
> > > <sarcasm>
> > > Doesn't it just make you jealous that MySQL can do it but PHP can't?
> > > </sarcasm>
> > >
> > > Just my $0.05. Let me know if you need more...
> > >
> > > Jeremy
> > >
> > > Jeremy Brand :: Sr. Software Engineer :: 408-245-9058 ::
> > jeremy@nirvani.net
> > >
> > > http://www.JeremyBrand.com/Jeremy/Brand/Jeremy_Brand.html for more
> > > Get your own Free, Private email at
> > > http://www.smackdown.com/
> > > - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
> > > "<body>" -- Quoted from Yahoo! homepage,
> > > http://www.yahoo.com
> > >
> > >
> > > --
> > > PHP General Mailing List (http://www.php.net/)
> > > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> > > For additional commands, e-mail: php-general-help@lists.php.net
> > > To contact the list administrators, e-mail: php-list-admin@lists.php.net
> > >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> > For additional commands, e-mail: php-general-help@lists.php.net
> > To contact the list administrators, e-mail: php-list-admin@lists.php.net
> >
> >
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>