Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. BigInteger.php

function BigInteger::and

Returns the integer bitwise-and combined with another integer.

This method returns a negative BigInteger if and only if both operands are negative.

Parameters

BigNumber|int|float|string $that The operand. Must be convertible to an integer number.:

File

vendor/brick/math/src/BigInteger.php, line 704

Class

BigInteger
An arbitrary-size integer.

Namespace

Brick\Math

Code

public function and(BigNumber|int|float|string $that) : BigInteger {
    $that = BigInteger::of($that);
    return new BigInteger(Calculator::get()->and($this->value, $that->value));
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal