Reply to Re: How do we assign 16 bytes unsigned Integer in PHP?

Your name:

Reply:


Posted by cyclops on 02/12/06 17:58

mkwong8888@hotmail.com wrote:
> We are unable to represent an unsigned integer with 16 bytes memory
> size. The current integer size is 4 bytes by default. There is no way
> for us to store large integer in this case.
>
> The valid number range is from 0 to 2^128-1
> (340282366920938463463374607431768211455).
>
> Please help.
>
you'll probably have to build your own representation for a 16 bit
integer, along with function to handle 16 bit math. Best way is probably
a class

class int16
{
function int16($newint16)//a string
{

}

function addint16($otherint16)//another int16 object
{

}
//etc..
}

I'm sure if you look online you'll find details on how to implement math
on ints larger than your hardware can handle.

[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

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