-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Hi,
There's a bug in the AMQPDecimal::asBCvalue() as per the following:
class AMQPDecimal
{
public function __construct($n, $e)
{
if($e < 0)
throw new Exception("Decimal exponent value must be unsigned!");
$this->n = $n;
$this->e = $e;
}
public function asBCvalue()
{
// Should be return bcdiv($this->n, bcpow(10,$this->e));
return bcdiv($n, bcpow(10,$e));
}
}
Thanks,
--Robin
Original issue reported on code.google.com by harvey.r...@gmail.com on 14 Nov 2010 at 4:28
Reactions are currently unavailable