Adds the specified number to self.

@param number the number that needs to be added to the array.
351495
public void add(Number number) {
    elements.add(number == null ? JsonNull.INSTANCE : new JsonPrimitive(number));
  }
1026010
public function setNumber($number)
    {
      if(!is_string($number) || strlen(trim($number)) == 0)
        throw new InvalidArgumentException(__METHOD__ . '; Invalid number, must be a non empty string');

      $this->number = $number;
    }
257584
public function setNumber($number = null)
    {
        $this->number = null !== $number ? floatval($number) : null;

        return $this;
    }
835401
public void setNumber(int index, Number value)
   {
      set(selectField(TaskFieldLists.CUSTOM_NUMBER, index), value);
   }
1004471
public function plus($number)
    {
        self::mustBeNumeric($number, 'Value to add');
        
        $number = is_object($number) ? $number->value : $number;

        return new self($this->value + $number);
    }
1095548
def add(self, num):
        
        try:
            val = self.value() + num
        except:
            val = num
        self.set(max(0, val))
222327
public void add(double value) {
    count++;
    min = Math.min(min, value);
    max = Math.max(max, value);
    sum += value;
    sumOfSquares += value * value;
    addQuantileValue(value);
  }
120098
private function parseNumber($number) {

        try {
            $this->numberParsed = $this->instance->parse($number, $this->defaultRegion);
        } catch (\libphonenumber\NumberParseException $e) {
            $this->numberParsed = null;
        }
    }
82692
@Override
    public MonetaryAmountFactory<T> setNumber(Number number) {
        this.number = ConvertBigDecimal.of(number);
        return this;
    }
804061
public function setNumberOfMandatoryArguments( $number = 0 )
	{
		if( !is_int( $number ) )														//  no Integer given
			throw new InvalidArgument( 'No integer given' );							//  throw Exception
		if( $number === $this->numberArguments )										//  this Number is already set
			return FALSE;																//  do nothing
		$this->numberArguments	= $number;												//  set new Argument Number
		return TRUE;																	//  indicate Success
	}
478727
def add(self, *number):
        """"""
        return self._format_result(sum(
            # positional arguments are always strings
            [int(n) for n in number]))
171538
function addNum(arr, num, index = 0) {
  if (arr[index] == undefined) arr[index] = 0;
  arr[index] += num;
}
1166204
public function setNumber($number)
    {
        if (!is_string($number) && !is_null($number)) {
            throw new \InvalidArgumentException(__CLASS__ . ' ' . __METHOD__ . ': Not a string');
        }

        $this->number = $number;

        return $this;
    }
608846
public AverageBuilder addValue(final Number number) {
        final double total = _average * _numValues + number.doubleValue();
        _numValues++;
        _average = total / _numValues;
        return this;
    }
689868
@Deprecated
    public void setNumber(@Nullable String number) {
        this.number = number;
        this.brand = null;
        this.last4 = null;
    }
651441
public void addInt(
        @DoNotSub final int index,
        final int element)
    {
        checkIndexForAdd(index);

        @DoNotSub final int requiredSize = size + 1;
        ensureCapacityPrivate(requiredSize);

        if (index < size)
        {
            System.arraycopy(elements, index, elements, index + 1, size - index);
        }

        elements[index] = element;
        size++;
    }
278454
public void append(int element)
    {
        if (this.size == this.data.length)
        {
            expand();
        }
        this.data[this.size] = element;
        this.size += 1;
    }