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

Breadcrumb

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

function BigNumber::isPositiveOrZero

Checks if this number is positive or zero.

1 call to BigNumber::isPositiveOrZero()
BigInteger::shiftedRight in vendor/brick/math/src/BigInteger.php
Returns the integer right shifted by a given number of bits.

File

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

Class

BigNumber
Common interface for arbitrary-precision rational numbers.

Namespace

Brick\Math

Code

public final function isPositiveOrZero() : 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