[ previous ] [ next ] [ threads ]
 
 From:  Steven McCoy <fnjordy at gmail dot com>
 To:  m0n0wall at lists dot m0n0 dot ch
 Subject:  Re: [m0n0wall] 32Bit limitation of php?
 Date:  Fri, 23 Sep 2005 20:07:17 +0800
>
> While wanting to implement RADIUS Gigawords I ran into the integer limit
> of php which seems to be 32bit (2^32)
>
> Anyone knows how I solve this?
>
>
You could either split larger numbers into multiple integers for simple
addition like with C's time in seconds and microseconds, or just use the
BCMath API:

http://hk.php.net/manual/en/ref.bc.php

--
Steve-o