Lines Matching refs:value
47 * @param string|int|array $value value as string or integer or byte array
49 public function __construct($value) { argument
51 if ($value === null || $value === '') {
55 if (is_array($value)) {
57 $bytes = $value;
59 $value = '0';
78 $value = bcadd($value, bcmul($bytes[$i], bcpow(256, $length - $i - 1, 0), 0), 0);
82 $value = bcadd($value, 1);
85 $value = $sign . $value;
87 } else if ($value instanceof GTBigInteger) {
88 $value = $value->getValue();
91 $value = (string) $value;
97 foreach (GTUtil::toArray($value) as $c) {
103 $this->value = $value;
112 return $this->value;
122 return bccomp($this->value, $integer->value, 0);
132 return new GTBigInteger(bcadd($this->value, $integer->value, 0));
142 return new GTBigInteger(bcsub($this->value, $integer->value, 0));
152 return new GTBigInteger(bcmul($this->value, $integer->value, 0));
162 return new GTBigInteger(bcdiv($this->value, $integer->value, 0));
172 return new GTBigInteger(bcmod($this->value, $modulus));
182 return new GTBigInteger(bcpow($this->value, $integer->value, 0));
192 return new GTBigInteger(bcmul($this->value, bcpow(2, $step)));
202 return new GTBigInteger(bcdiv($this->value, bcpow(2, $step)));
321 $buff = $this->value;