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

Breadcrumb

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

function BigNumber::isNegative

Checks if this number is strictly negative.

5 calls to BigNumber::isNegative()
BigDecimal::abs in vendor/brick/math/src/BigDecimal.php
Returns the absolute value of this number.
BigInteger::abs in vendor/brick/math/src/BigInteger.php
Returns the absolute value of this number.
BigInteger::getBitLength in vendor/brick/math/src/BigInteger.php
Returns the number of bits in the minimal two's-complement representation of this BigInteger, excluding a sign bit.
BigInteger::modPow in vendor/brick/math/src/BigInteger.php
Returns this number raised into power with modulo.
BigInteger::toBytes in vendor/brick/math/src/BigInteger.php
Returns a string of bytes containing the binary representation of this BigInteger.

File

vendor/brick/math/src/BigNumber.php, line 397

Class

BigNumber
Common interface for arbitrary-precision rational numbers.

Namespace

Brick\Math

Code

public final function isNegative() : bool {
    return $this->getSign() < 0;
}

API Navigation

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