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.
Navigation:
[Reply to this message]
|