Reply to Re: [PHP] Can this code go faster?

Your name:

Reply:


Posted by Richard Lynch on 10/22/34 11:14

On Tue, April 26, 2005 9:56 am, René Fournier said:
> I've looked in the docs and don't see anything for this per se...
> I need to convert a binary number of arbitrary length to a signed
> integer.

No matter what you do, a PHP integer is going to be 32-bit.

So "artbitrary length" is not gonna happen...

Unless you use something like BC_MATH and specify your precision.

Also look into the user-contributed notes on the http://php.net/bindec
page, as many seem to be trying to do the same thing as you are.

http://php.net/base_convert also had pointers about using GMP which may
hold a solution.

--
Like Music?
http://l-i-e.com/artists.htm

[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

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