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\MathCode
public final function isNegative() : bool {
return $this->getSign() < 0;
}