Methods Summary | ||
---|---|---|
public static
|
#
of( \BigNumber|\number|string $value )
Creates a BigNumber of the given value.
The concrete return type is dependent on the given value, with the following rules:
- BigNumber instances are returned as is
- integer numbers are returned as BigInteger
- floating point numbers are returned as BigDecimal
- strings containing a `/` character are returned as BigRational
- strings containing a `.` character or using an exponentional notation are returned as BigDecimal
- strings containing only digits with an optional leading `+` or `-` sign are returned as BigInteger
|
|
public static
|
||
public static
|
||
public
|
||
public
|
#
isLessThan( \BigNumber|\number|string $that )
Checks if this number is strictly lower than the given one.
|
|
public
|
#
isLessThanOrEqualTo( \BigNumber|\number|string $that )
Checks if this number is lower than or equal to the given one.
|
|
public
|
#
isGreaterThan( \BigNumber|\number|string $that )
Checks if this number is strictly greater than the given one.
|
|
public
|
#
isGreaterThanOrEqualTo( \BigNumber|\number|string $that )
Checks if this number is greater than or equal to the given one.
|
|
public
|
||
public
|
||
public
|
||
public
|
||
public
|
||
abstract public
|
||
abstract public
|
||
abstract public
|
||
abstract public
|
||
abstract public
|
||
abstract public
|
||
abstract public
|
||
abstract public
|
||
abstract public
|
#
__toString( )
Returns a string representation of this number.
The output of this method can be parsed by the `of()` factory method;
this will yield an object equal to this one, without any information loss.
|
|
public
|