Re: Binary Shift: Signed or Unsigned?

From: Date: Fri, 25 Jun 2004 17:54:21 +0000
Subject: Re: Binary Shift: Signed or Unsigned?
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-10777@lists.php.net to get a copy of this message
Alex Stapleton wrote:
I am using PHP5, if I want unsigned binary shift, do i have any options other than converting to a string using base_convert and
You could use BC: bcdiv($a, 2); to do $a >> 1; - Chris

« previous php.internals (#10777) next »