diff options
| author | Remi Collet <remi@remirepo.net> | 2026-04-12 08:09:11 +0200 |
|---|---|---|
| committer | Remi Collet <remi@php.net> | 2026-04-12 08:09:11 +0200 |
| commit | 2b855e80d64edce2f860768e90598103fad9619f (patch) | |
| tree | 47f2d69947cf34b3a084e24bab5a8da9efe1fc91 | |
| parent | 72daaf31cc23bceb3125ffe8c210501254f77a6f (diff) | |
sync with v1
| -rw-r--r-- | PHPINFO | 4 | ||||
| -rw-r--r-- | REFLECTION | 785 |
2 files changed, 92 insertions, 697 deletions
@@ -2,5 +2,5 @@ decimal decimal support => enabled -decimal version => 2.0.0 -libmpdec version => 2.4.2 +decimal version => 1.5.3 +libmpdec version => 4.0.1 @@ -1,20 +1,20 @@ -Extension [ <persistent> extension #109 decimal version 2.0.0 ] { +Extension [ <persistent> extension #76 decimal version 1.5.3 ] { - - Classes [3] { - Class [ <internal:decimal> abstract class Decimal\Number implements JsonSerializable ] { + - Classes [1] { + Class [ <internal:decimal> final class Decimal\Decimal implements Stringable, JsonSerializable ] { - Constants [13] { - Constant [ public int DEFAULT_ROUNDING ] { 3 } Constant [ public int ROUND_UP ] { 101 } Constant [ public int ROUND_DOWN ] { 102 } Constant [ public int ROUND_CEILING ] { 103 } Constant [ public int ROUND_FLOOR ] { 104 } - Constant [ public int ROUND_HALF_UP ] { 1 } - Constant [ public int ROUND_HALF_DOWN ] { 2 } - Constant [ public int ROUND_HALF_EVEN ] { 3 } - Constant [ public int ROUND_HALF_ODD ] { 4 } - Constant [ public int ROUND_TRUNCATE ] { 105 } - Constant [ public int DEFAULT_PRECISION ] { 34 } + Constant [ public int ROUND_HALF_UP ] { 105 } + Constant [ public int ROUND_HALF_DOWN ] { 106 } + Constant [ public int ROUND_HALF_EVEN ] { 107 } + Constant [ public int ROUND_HALF_ODD ] { 108 } + Constant [ public int ROUND_TRUNCATE ] { 109 } + Constant [ public int DEFAULT_PRECISION ] { 28 } + Constant [ public int DEFAULT_ROUNDING ] { 107 } Constant [ public int MIN_PRECISION ] { 1 } Constant [ public int MAX_PRECISION ] { 999999999999999999 } } @@ -22,346 +22,75 @@ Extension [ <persistent> extension #109 decimal version 2.0.0 ] { - Static properties [0] { } - - Static methods [1] { - Method [ <internal:decimal> static public method valueOf ] { - - - Parameters [1] { - Parameter #0 [ <required> $value ] - } - - Return [ Decimal\Number ] - } - } - - - Properties [0] { - } - - - Methods [33] { - Method [ <internal:decimal> abstract public method add ] { - - - Parameters [1] { - Parameter #0 [ <required> $value ] - } - - Return [ Decimal\Number ] - } - - Method [ <internal:decimal> abstract public method sub ] { - - - Parameters [1] { - Parameter #0 [ <required> $value ] - } - - Return [ Decimal\Number ] - } - - Method [ <internal:decimal> abstract public method mul ] { - - - Parameters [1] { - Parameter #0 [ <required> $value ] - } - - Return [ Decimal\Number ] - } - - Method [ <internal:decimal> abstract public method div ] { - - - Parameters [1] { - Parameter #0 [ <required> $value ] - } - - Return [ Decimal\Number ] - } - - Method [ <internal:decimal> abstract public method pow ] { - - - Parameters [1] { - Parameter #0 [ <required> $exponent ] - } - - Return [ Decimal\Number ] - } - - Method [ <internal:decimal> abstract public method mod ] { - - - Parameters [1] { - Parameter #0 [ <required> $value ] - } - - Return [ Decimal\Number ] - } - - Method [ <internal:decimal> abstract public method shiftl ] { - - - Parameters [1] { - Parameter #0 [ <required> $places ] - } - - Return [ Decimal\Number ] - } - - Method [ <internal:decimal> abstract public method shiftr ] { - - - Parameters [1] { - Parameter #0 [ <required> $places ] - } - - Return [ Decimal\Number ] - } - - Method [ <internal:decimal> abstract public method round ] { + - Static methods [2] { + Method [ <internal:decimal> static public method sum ] { - Parameters [2] { - Parameter #0 [ <optional> int or NULL $places ] - Parameter #1 [ <optional> int or NULL $mode ] - } - - Return [ Decimal\Number ] - } - - Method [ <internal:decimal> public method floor ] { - - - Parameters [0] { - } - - Return [ Decimal\Number ] - } - - Method [ <internal:decimal> public method ceil ] { - - - Parameters [0] { - } - - Return [ Decimal\Number ] - } - - Method [ <internal:decimal> public method trunc ] { - - - Parameters [0] { - } - - Return [ Decimal\Number ] - } - - Method [ <internal:decimal> public method abs ] { - - - Parameters [0] { - } - - Return [ Decimal\Number ] - } - - Method [ <internal:decimal> public method negate ] { - - - Parameters [0] { - } - - Return [ Decimal\Number ] - } - - Method [ <internal:decimal> public method isNaN ] { - - - Parameters [0] { - } - - Return [ bool ] - } - - Method [ <internal:decimal> public method isInf ] { - - - Parameters [0] { - } - - Return [ bool ] - } - - Method [ <internal:decimal> public method isInteger ] { - - - Parameters [0] { - } - - Return [ bool ] - } - - Method [ <internal:decimal> public method isZero ] { - - - Parameters [0] { - } - - Return [ bool ] - } - - Method [ <internal:decimal> public method isEven ] { - - - Parameters [0] { - } - - Return [ bool ] - } - - Method [ <internal:decimal> public method isOdd ] { - - - Parameters [0] { - } - - Return [ bool ] - } - - Method [ <internal:decimal> public method isPositive ] { - - - Parameters [0] { - } - - Return [ bool ] - } - - Method [ <internal:decimal> public method isNegative ] { - - - Parameters [0] { - } - - Return [ bool ] - } - - Method [ <internal:decimal> abstract public method toString ] { - - - Parameters [0] { - } - - Return [ string ] - } - - Method [ <internal:decimal> abstract public method toFixed ] { - - - Parameters [3] { - Parameter #0 [ <optional> int or NULL $places ] - Parameter #1 [ <optional> bool or NULL $commas ] - Parameter #2 [ <optional> int or NULL $mode ] - } - - Return [ string ] - } - - Method [ <internal:decimal> abstract public method toInt ] { - - - Parameters [0] { - } - - Return [ int ] - } - - Method [ <internal:decimal> abstract public method toFloat ] { - - - Parameters [0] { - } - - Return [ float ] - } - - Method [ <internal:decimal> public method toDecimal ] { - - - Parameters [1] { - Parameter #0 [ <required> int $precision ] + Parameter #0 [ <required> $values ] + Parameter #1 [ <optional> ?int $precision = <default> ] } - Return [ Decimal\Decimal ] } - Method [ <internal:decimal> public method toRational ] { - - - Parameters [0] { - } - - Return [ Decimal\Rational ] - } - - Method [ <internal:decimal> abstract public method compareTo ] { - - - Parameters [1] { - Parameter #0 [ <required> $other ] - } - - Return [ int ] - } - - Method [ <internal:decimal> public method between ] { - - - Parameters [3] { - Parameter #0 [ <required> $a ] - Parameter #1 [ <required> $b ] - Parameter #2 [ <optional> bool or NULL $inclusive ] - } - - Return [ bool ] - } - - Method [ <internal:decimal> public method equals ] { - - - Parameters [1] { - Parameter #0 [ <required> $other ] - } - - Return [ bool ] - } + Method [ <internal:decimal> static public method avg ] { - Method [ <internal:decimal> public method __toString ] { - - - Parameters [0] { - } - - Return [ string ] - } - - Method [ <internal:decimal, prototype JsonSerializable> public method jsonSerialize ] { - - - Parameters [0] { + - Parameters [2] { + Parameter #0 [ <required> $values ] + Parameter #1 [ <optional> ?int $precision = <default> ] } - - Return [ string ] + - Return [ Decimal\Decimal ] } } - } - - Class [ <internal:decimal> final class Decimal\Decimal extends Decimal\Number implements JsonSerializable ] { - - - Constants [15] { - Constant [ public int DEFAULT_ROUNDING ] { 3 } - Constant [ public int ROUND_UP ] { 101 } - Constant [ public int ROUND_DOWN ] { 102 } - Constant [ public int ROUND_CEILING ] { 103 } - Constant [ public int ROUND_FLOOR ] { 104 } - Constant [ public int ROUND_HALF_UP ] { 1 } - Constant [ public int ROUND_HALF_DOWN ] { 2 } - Constant [ public int ROUND_HALF_EVEN ] { 3 } - Constant [ public int ROUND_HALF_ODD ] { 4 } - Constant [ public int ROUND_TRUNCATE ] { 105 } - Constant [ public int DEFAULT_PRECISION ] { 34 } - Constant [ public int MIN_PRECISION ] { 1 } - Constant [ public int MAX_PRECISION ] { 999999999999999999 } - Constant [ public object PI ] { 3.141592653589793 } - Constant [ public object E ] { 2.7182818284590452353602874713526625 } - } - - Static properties [0] { + - Properties [0] { } - - Static methods [1] { - Method [ <internal:decimal, overwrites Decimal\Number, prototype Decimal\Number> static public method valueOf ] { + - Methods [41] { + Method [ <internal:decimal, ctor> public method __construct ] { - Parameters [2] { - Parameter #0 [ <required> $value ] - Parameter #1 [ <optional> int or NULL $precision ] + Parameter #0 [ <optional> $value = <default> ] + Parameter #1 [ <optional> int $precision = <default> ] } - - Return [ Decimal\Number ] } - } - - - Properties [0] { - } - - Methods [43] { - Method [ <internal:decimal, ctor> private method __construct ] { + Method [ <internal:decimal> public method copy ] { - Parameters [0] { } + - Return [ Decimal\Decimal ] } - Method [ <internal:decimal, overwrites Decimal\Number, prototype Decimal\Number> public method add ] { + Method [ <internal:decimal> public method add ] { - Parameters [1] { Parameter #0 [ <required> $value ] } - - Return [ Decimal\Number ] + - Return [ Decimal\Decimal ] } - Method [ <internal:decimal, overwrites Decimal\Number, prototype Decimal\Number> public method sub ] { + Method [ <internal:decimal> public method sub ] { - Parameters [1] { Parameter #0 [ <required> $value ] } - - Return [ Decimal\Number ] + - Return [ Decimal\Decimal ] } - Method [ <internal:decimal, overwrites Decimal\Number, prototype Decimal\Number> public method mul ] { + Method [ <internal:decimal> public method mul ] { - Parameters [1] { Parameter #0 [ <required> $value ] } - - Return [ Decimal\Number ] + - Return [ Decimal\Decimal ] } - Method [ <internal:decimal, overwrites Decimal\Number, prototype Decimal\Number> public method div ] { + Method [ <internal:decimal> public method div ] { - Parameters [1] { Parameter #0 [ <required> $value ] } - - Return [ Decimal\Number ] + - Return [ Decimal\Decimal ] } Method [ <internal:decimal> public method rem ] { @@ -369,111 +98,96 @@ Extension [ <persistent> extension #109 decimal version 2.0.0 ] { - Parameters [1] { Parameter #0 [ <required> $value ] } - - Return [ Decimal\Number ] + - Return [ Decimal\Decimal ] } - Method [ <internal:decimal, overwrites Decimal\Number, prototype Decimal\Number> public method mod ] { + Method [ <internal:decimal> public method mod ] { - Parameters [1] { Parameter #0 [ <required> $value ] } - - Return [ Decimal\Number ] + - Return [ Decimal\Decimal ] } - Method [ <internal:decimal, overwrites Decimal\Number, prototype Decimal\Number> public method pow ] { + Method [ <internal:decimal> public method pow ] { - Parameters [1] { Parameter #0 [ <required> $value ] } - - Return [ Decimal\Number ] - } - - Method [ <internal:decimal, overwrites Decimal\Number, prototype Decimal\Number> public method shiftl ] { - - - Parameters [1] { - Parameter #0 [ <required> $places ] - } - - Return [ Decimal\Number ] - } - - Method [ <internal:decimal, overwrites Decimal\Number, prototype Decimal\Number> public method shiftr ] { - - - Parameters [1] { - Parameter #0 [ <required> $places ] - } - - Return [ Decimal\Number ] + - Return [ Decimal\Decimal ] } Method [ <internal:decimal> public method ln ] { - Parameters [0] { } - - Return [ Decimal\Number ] + - Return [ Decimal\Decimal ] } Method [ <internal:decimal> public method exp ] { - Parameters [0] { } - - Return [ Decimal\Number ] + - Return [ Decimal\Decimal ] } Method [ <internal:decimal> public method log10 ] { - Parameters [0] { } - - Return [ Decimal\Number ] + - Return [ Decimal\Decimal ] } Method [ <internal:decimal> public method sqrt ] { - Parameters [0] { } - - Return [ Decimal\Number ] + - Return [ Decimal\Decimal ] } - Method [ <internal:decimal, overwrites Decimal\Number, prototype Decimal\Number> public method floor ] { + Method [ <internal:decimal> public method floor ] { - Parameters [0] { } - - Return [ Decimal\Number ] + - Return [ Decimal\Decimal ] } - Method [ <internal:decimal, overwrites Decimal\Number, prototype Decimal\Number> public method ceil ] { + Method [ <internal:decimal> public method ceil ] { - Parameters [0] { } - - Return [ Decimal\Number ] + - Return [ Decimal\Decimal ] } - Method [ <internal:decimal, overwrites Decimal\Number, prototype Decimal\Number> public method trunc ] { + Method [ <internal:decimal> public method truncate ] { - Parameters [0] { } - - Return [ Decimal\Number ] + - Return [ Decimal\Decimal ] } - Method [ <internal:decimal, overwrites Decimal\Number, prototype Decimal\Number> public method round ] { + Method [ <internal:decimal> public method round ] { - Parameters [2] { - Parameter #0 [ <optional> int or NULL $places ] - Parameter #1 [ <optional> int or NULL $mode ] + Parameter #0 [ <optional> ?int $places = <default> ] + Parameter #1 [ <optional> ?int $rounding = <default> ] } - - Return [ Decimal\Number ] + - Return [ Decimal\Decimal ] } - Method [ <internal:decimal> public method trim ] { + Method [ <internal:decimal> public method shift ] { - - Parameters [0] { + - Parameters [1] { + Parameter #0 [ <required> int $places ] } - - Return [ Decimal\Number ] + - Return [ Decimal\Decimal ] } - Method [ <internal:decimal> public method reduce ] { + Method [ <internal:decimal> public method trim ] { - Parameters [0] { } - - Return [ Decimal\Number ] + - Return [ Decimal\Decimal ] } Method [ <internal:decimal> public method precision ] { @@ -483,440 +197,130 @@ Extension [ <persistent> extension #109 decimal version 2.0.0 ] { - Return [ int ] } - Method [ <internal:decimal, overwrites Decimal\Number, prototype Decimal\Number> public method abs ] { - - - Parameters [0] { - } - - Return [ Decimal\Number ] - } - - Method [ <internal:decimal, overwrites Decimal\Number, prototype Decimal\Number> public method negate ] { - - - Parameters [0] { - } - - Return [ Decimal\Number ] - } - - Method [ <internal:decimal, overwrites Decimal\Number, prototype Decimal\Number> public method isEven ] { - - - Parameters [0] { - } - - Return [ bool ] - } - - Method [ <internal:decimal, overwrites Decimal\Number, prototype Decimal\Number> public method isOdd ] { - - - Parameters [0] { - } - - Return [ bool ] - } - - Method [ <internal:decimal, overwrites Decimal\Number, prototype Decimal\Number> public method isPositive ] { - - - Parameters [0] { - } - - Return [ bool ] - } - - Method [ <internal:decimal, overwrites Decimal\Number, prototype Decimal\Number> public method isNegative ] { - - - Parameters [0] { - } - - Return [ bool ] - } - - Method [ <internal:decimal, overwrites Decimal\Number, prototype Decimal\Number> public method isNaN ] { - - - Parameters [0] { - } - - Return [ bool ] - } - - Method [ <internal:decimal, overwrites Decimal\Number, prototype Decimal\Number> public method isInf ] { - - - Parameters [0] { - } - - Return [ bool ] - } - - Method [ <internal:decimal, overwrites Decimal\Number, prototype Decimal\Number> public method isInteger ] { - - - Parameters [0] { - } - - Return [ bool ] - } - - Method [ <internal:decimal, overwrites Decimal\Number, prototype Decimal\Number> public method isZero ] { - - - Parameters [0] { - } - - Return [ bool ] - } - - Method [ <internal:decimal, overwrites Decimal\Number, prototype Decimal\Number> public method toString ] { - - - Parameters [0] { - } - - Return [ string ] - } - - Method [ <internal:decimal, overwrites Decimal\Number, prototype Decimal\Number> public method toFixed ] { - - - Parameters [3] { - Parameter #0 [ <optional> int or NULL $places ] - Parameter #1 [ <optional> bool or NULL $commas ] - Parameter #2 [ <optional> int or NULL $mode ] - } - - Return [ string ] - } - - Method [ <internal:decimal> public method toSci ] { - - - Parameters [1] { - Parameter #0 [ <optional> int or NULL $precision ] - } - - Return [ string ] - } - - Method [ <internal:decimal, overwrites Decimal\Number, prototype Decimal\Number> public method toInt ] { + Method [ <internal:decimal> public method signum ] { - Parameters [0] { } - Return [ int ] } - Method [ <internal:decimal, overwrites Decimal\Number, prototype Decimal\Number> public method toFloat ] { - - - Parameters [0] { - } - - Return [ float ] - } - - Method [ <internal:decimal, overwrites Decimal\Number, prototype Decimal\Number> public method toDecimal ] { - - - Parameters [1] { - Parameter #0 [ <optional> int $precision ] - } - - Return [ Decimal\Decimal ] - } - - Method [ <internal:decimal, overwrites Decimal\Number, prototype Decimal\Number> public method toRational ] { + Method [ <internal:decimal> public method parity ] { - Parameters [0] { } - - Return [ Decimal\Rational ] - } - - Method [ <internal:decimal, overwrites Decimal\Number, prototype Decimal\Number> public method compareTo ] { - - - Parameters [1] { - Parameter #0 [ <required> $other ] - } - Return [ int ] } - Method [ <internal:decimal, overwrites Decimal\Number, prototype Decimal\Number> public method between ] { - - - Parameters [3] { - Parameter #0 [ <required> $a ] - Parameter #1 [ <required> $b ] - Parameter #2 [ <optional> bool or NULL $inclusive ] - } - - Return [ bool ] - } - - Method [ <internal:decimal, overwrites Decimal\Number, prototype Decimal\Number> public method equals ] { - - - Parameters [1] { - Parameter #0 [ <required> $other ] - } - - Return [ bool ] - } - - Method [ <internal:decimal, inherits Decimal\Number> public method __toString ] { - - - Parameters [0] { - } - - Return [ string ] - } - - Method [ <internal:decimal, inherits Decimal\Number, prototype JsonSerializable> public method jsonSerialize ] { - - - Parameters [0] { - } - - Return [ string ] - } - } - } - - Class [ <internal:decimal> final class Decimal\Rational extends Decimal\Number implements JsonSerializable ] { - - - Constants [13] { - Constant [ public int DEFAULT_ROUNDING ] { 3 } - Constant [ public int ROUND_UP ] { 101 } - Constant [ public int ROUND_DOWN ] { 102 } - Constant [ public int ROUND_CEILING ] { 103 } - Constant [ public int ROUND_FLOOR ] { 104 } - Constant [ public int ROUND_HALF_UP ] { 1 } - Constant [ public int ROUND_HALF_DOWN ] { 2 } - Constant [ public int ROUND_HALF_EVEN ] { 3 } - Constant [ public int ROUND_HALF_ODD ] { 4 } - Constant [ public int ROUND_TRUNCATE ] { 105 } - Constant [ public int DEFAULT_PRECISION ] { 34 } - Constant [ public int MIN_PRECISION ] { 1 } - Constant [ public int MAX_PRECISION ] { 999999999999999999 } - } - - - Static properties [0] { - } - - - Static methods [1] { - Method [ <internal:decimal, overwrites Decimal\Number, prototype Decimal\Number> static public method valueOf ] { - - - Parameters [1] { - Parameter #0 [ <required> $value ] - } - - Return [ Decimal\Number ] - } - } - - - Properties [0] { - } - - - Methods [36] { - Method [ <internal:decimal, ctor> private method __construct ] { - - - Parameters [0] { - } - } - - Method [ <internal:decimal, overwrites Decimal\Number, prototype Decimal\Number> public method add ] { - - - Parameters [1] { - Parameter #0 [ <required> $value ] - } - - Return [ Decimal\Number ] - } - - Method [ <internal:decimal, overwrites Decimal\Number, prototype Decimal\Number> public method sub ] { - - - Parameters [1] { - Parameter #0 [ <required> $value ] - } - - Return [ Decimal\Number ] - } - - Method [ <internal:decimal, overwrites Decimal\Number, prototype Decimal\Number> public method mul ] { - - - Parameters [1] { - Parameter #0 [ <required> $value ] - } - - Return [ Decimal\Number ] - } - - Method [ <internal:decimal, overwrites Decimal\Number, prototype Decimal\Number> public method div ] { - - - Parameters [1] { - Parameter #0 [ <required> $value ] - } - - Return [ Decimal\Number ] - } - - Method [ <internal:decimal, overwrites Decimal\Number, prototype Decimal\Number> public method pow ] { - - - Parameters [1] { - Parameter #0 [ <required> $exponent ] - } - - Return [ Decimal\Number ] - } - - Method [ <internal:decimal> public method rem ] { - - - Parameters [1] { - Parameter #0 [ <required> $value ] - } - - Return [ Decimal\Number ] - } - - Method [ <internal:decimal, overwrites Decimal\Number, prototype Decimal\Number> public method mod ] { - - - Parameters [1] { - Parameter #0 [ <required> $value ] - } - - Return [ Decimal\Number ] - } - - Method [ <internal:decimal, overwrites Decimal\Number, prototype Decimal\Number> public method shiftl ] { - - - Parameters [1] { - Parameter #0 [ <required> $places ] - } - - Return [ Decimal\Number ] - } - - Method [ <internal:decimal, overwrites Decimal\Number, prototype Decimal\Number> public method shiftr ] { - - - Parameters [1] { - Parameter #0 [ <required> $places ] - } - - Return [ Decimal\Number ] - } - - Method [ <internal:decimal, overwrites Decimal\Number, prototype Decimal\Number> public method floor ] { - - - Parameters [0] { - } - - Return [ Decimal\Number ] - } - - Method [ <internal:decimal, overwrites Decimal\Number, prototype Decimal\Number> public method ceil ] { - - - Parameters [0] { - } - - Return [ Decimal\Number ] - } - - Method [ <internal:decimal, overwrites Decimal\Number, prototype Decimal\Number> public method trunc ] { - - - Parameters [0] { - } - - Return [ Decimal\Number ] - } - - Method [ <internal:decimal, overwrites Decimal\Number, prototype Decimal\Number> public method round ] { - - - Parameters [2] { - Parameter #0 [ <optional> int or NULL $places ] - Parameter #1 [ <optional> int or NULL $rounding ] - } - - Return [ Decimal\Number ] - } - - Method [ <internal:decimal, overwrites Decimal\Number, prototype Decimal\Number> public method abs ] { + Method [ <internal:decimal> public method abs ] { - Parameters [0] { } - - Return [ Decimal\Number ] + - Return [ Decimal\Decimal ] } - Method [ <internal:decimal, overwrites Decimal\Number, prototype Decimal\Number> public method negate ] { + Method [ <internal:decimal> public method negate ] { - Parameters [0] { } - - Return [ Decimal\Number ] + - Return [ Decimal\Decimal ] } - Method [ <internal:decimal, overwrites Decimal\Number, prototype Decimal\Number> public method isEven ] { + Method [ <internal:decimal> public method isEven ] { - Parameters [0] { } - Return [ bool ] } - Method [ <internal:decimal, overwrites Decimal\Number, prototype Decimal\Number> public method isOdd ] { + Method [ <internal:decimal> public method isOdd ] { - Parameters [0] { } - Return [ bool ] } - Method [ <internal:decimal, overwrites Decimal\Number, prototype Decimal\Number> public method isPositive ] { + Method [ <internal:decimal> public method isPositive ] { - Parameters [0] { } - Return [ bool ] } - Method [ <internal:decimal, overwrites Decimal\Number, prototype Decimal\Number> public method isNegative ] { + Method [ <internal:decimal> public method isNegative ] { - Parameters [0] { } - Return [ bool ] } - Method [ <internal:decimal, overwrites Decimal\Number, prototype Decimal\Number> public method isNaN ] { + Method [ <internal:decimal> public method isNaN ] { - Parameters [0] { } - Return [ bool ] } - Method [ <internal:decimal, overwrites Decimal\Number, prototype Decimal\Number> public method isInf ] { + Method [ <internal:decimal> public method isInf ] { - Parameters [0] { } - Return [ bool ] } - Method [ <internal:decimal, overwrites Decimal\Number, prototype Decimal\Number> public method isInteger ] { + Method [ <internal:decimal> public method isInteger ] { - Parameters [0] { } - Return [ bool ] } - Method [ <internal:decimal, overwrites Decimal\Number, prototype Decimal\Number> public method isZero ] { + Method [ <internal:decimal> public method isZero ] { - Parameters [0] { } - Return [ bool ] } - Method [ <internal:decimal, overwrites Decimal\Number, prototype Decimal\Number> public method toFixed ] { + Method [ <internal:decimal> public method toFixed ] { - Parameters [3] { - Parameter #0 [ <optional> int or NULL $places ] - Parameter #1 [ <optional> bool or NULL $commas ] - Parameter #2 [ <optional> int or NULL $mode ] - } - - Return [ string ] - } - - Method [ <internal:decimal> public method toSci ] { - - - Parameters [1] { - Parameter #0 [ <optional> int or NULL $precision ] + Parameter #0 [ <optional> ?int $places = <default> ] + Parameter #1 [ <optional> ?bool $commas = <default> ] + Parameter #2 [ <optional> ?int $rounding = <default> ] } - Return [ string ] } - Method [ <internal:decimal, overwrites Decimal\Number, prototype Decimal\Number> public method toString ] { + Method [ <internal:decimal> public method toString ] { - Parameters [0] { } - Return [ string ] } - Method [ <internal:decimal, overwrites Decimal\Number, prototype Decimal\Number> public method toInt ] { + Method [ <internal:decimal> public method toInt ] { - Parameters [0] { } - Return [ int ] } - Method [ <internal:decimal, overwrites Decimal\Number, prototype Decimal\Number> public method toFloat ] { + Method [ <internal:decimal> public method toFloat ] { - Parameters [0] { } - Return [ float ] } - Method [ <internal:decimal, overwrites Decimal\Number, prototype Decimal\Number> public method toDecimal ] { + Method [ <internal:decimal> public method equals ] { - Parameters [1] { - Parameter #0 [ <required> int $precision ] - } - - Return [ Decimal\Decimal ] - } - - Method [ <internal:decimal, overwrites Decimal\Number, prototype Decimal\Number> public method toRational ] { - - - Parameters [0] { + Parameter #0 [ <required> $other ] } - - Return [ Decimal\Rational ] + - Return [ bool ] } - Method [ <internal:decimal, overwrites Decimal\Number, prototype Decimal\Number> public method compareTo ] { + Method [ <internal:decimal> public method compareTo ] { - Parameters [1] { Parameter #0 [ <required> $other ] @@ -924,32 +328,23 @@ Extension [ <persistent> extension #109 decimal version 2.0.0 ] { - Return [ int ] } - Method [ <internal:decimal, overwrites Decimal\Number, prototype Decimal\Number> public method between ] { - - - Parameters [3] { - Parameter #0 [ <required> $a ] - Parameter #1 [ <required> $b ] - Parameter #2 [ <optional> bool or NULL $inclusive ] - } - - Return [ bool ] - } - - Method [ <internal:decimal, overwrites Decimal\Number, prototype Decimal\Number> public method equals ] { + Method [ <internal:decimal> public method between ] { - - Parameters [1] { - Parameter #0 [ <required> $other ] + - Parameters [2] { + Parameter #0 [ <required> $op1 ] + Parameter #1 [ <optional> $op2 = <default> ] } - Return [ bool ] } - Method [ <internal:decimal, inherits Decimal\Number> public method __toString ] { + Method [ <internal:decimal, prototype Stringable> public method __toString ] { - Parameters [0] { } - Return [ string ] } - Method [ <internal:decimal, inherits Decimal\Number, prototype JsonSerializable> public method jsonSerialize ] { + Method [ <internal:decimal, prototype JsonSerializable> public method jsonSerialize ] { - Parameters [0] { } |
