summaryrefslogtreecommitdiffstats
path: root/REFLECTION
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2020-02-04 09:37:24 +0100
committerRemi Collet <remi@remirepo.net>2020-02-04 09:37:24 +0100
commit09e48a05b98b94fd52dc2562089f67e8d1279298 (patch)
treea1ef9b67ca87f0f3d563a41961d82cb248092309 /REFLECTION
parent483932783561752f0add0693b8b221a2fd09246e (diff)
update to 2.0.0 (alpha)HEADmaster
raise dependency on PHP 7.2 fix undefined symbol using patch from https://github.com/php-decimal/ext-decimal/pull/34 disable ZTS build which segfaults, reported as https://github.com/php-decimal/ext-decimal/issues/35
Diffstat (limited to 'REFLECTION')
-rw-r--r--REFLECTION777
1 files changed, 691 insertions, 86 deletions
diff --git a/REFLECTION b/REFLECTION
index bba6510..d8f893c 100644
--- a/REFLECTION
+++ b/REFLECTION
@@ -1,20 +1,20 @@
-Extension [ <persistent> extension #109 decimal version 1.3.1 ] {
+Extension [ <persistent> extension #109 decimal version 2.0.0 ] {
- - Classes [1] {
- Class [ <internal:decimal> final class Decimal\Decimal implements JsonSerializable ] {
+ - Classes [3] {
+ Class [ <internal:decimal> abstract class 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 ] { 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 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 }
}
@@ -22,75 +22,346 @@ Extension [ <persistent> extension #109 decimal version 1.3.1 ] {
- Static properties [0] {
}
- - Static methods [2] {
- Method [ <internal:decimal> static public method sum ] {
+ - Static methods [1] {
+ Method [ <internal:decimal> static public method valueOf ] {
- - Parameters [2] {
- Parameter #0 [ <required> $values ]
- Parameter #1 [ <optional> int or NULL $precision ]
+ - Parameters [1] {
+ Parameter #0 [ <required> $value ]
}
- - Return [ Decimal\Decimal ]
+ - 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> static public method avg ] {
+ 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 ] {
- Parameters [2] {
- Parameter #0 [ <required> $values ]
- Parameter #1 [ <optional> int or NULL $precision ]
+ 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 ]
}
- 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> public method __toString ] {
+
+ - Parameters [0] {
+ }
+ - Return [ string ]
+ }
+
+ Method [ <internal:decimal, prototype JsonSerializable> public method jsonSerialize ] {
+
+ - Parameters [0] {
+ }
+ - Return [ string ]
+ }
}
+ }
- - Properties [0] {
+ 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] {
}
- - Methods [41] {
- Method [ <internal:decimal, ctor> public method __construct ] {
+ - Static methods [1] {
+ Method [ <internal:decimal, overwrites Decimal\Number, prototype Decimal\Number> static public method valueOf ] {
- Parameters [2] {
- Parameter #0 [ <optional> $value ]
- Parameter #1 [ <optional> int $precision ]
+ Parameter #0 [ <required> $value ]
+ Parameter #1 [ <optional> int or NULL $precision ]
}
+ - Return [ Decimal\Number ]
}
+ }
- Method [ <internal:decimal> public method copy ] {
+ - Properties [0] {
+ }
+
+ - Methods [43] {
+ Method [ <internal:decimal, ctor> private method __construct ] {
- Parameters [0] {
}
- - Return [ Decimal\Decimal ]
}
- Method [ <internal:decimal> public method add ] {
+ Method [ <internal:decimal, overwrites Decimal\Number, prototype Decimal\Number> public method add ] {
- Parameters [1] {
Parameter #0 [ <required> $value ]
}
- - Return [ Decimal\Decimal ]
+ - Return [ Decimal\Number ]
}
- Method [ <internal:decimal> public method sub ] {
+ Method [ <internal:decimal, overwrites Decimal\Number, prototype Decimal\Number> public method sub ] {
- Parameters [1] {
Parameter #0 [ <required> $value ]
}
- - Return [ Decimal\Decimal ]
+ - Return [ Decimal\Number ]
}
- Method [ <internal:decimal> public method mul ] {
+ Method [ <internal:decimal, overwrites Decimal\Number, prototype Decimal\Number> public method mul ] {
- Parameters [1] {
Parameter #0 [ <required> $value ]
}
- - Return [ Decimal\Decimal ]
+ - Return [ Decimal\Number ]
}
- Method [ <internal:decimal> public method div ] {
+ Method [ <internal:decimal, overwrites Decimal\Number, prototype Decimal\Number> public method div ] {
- Parameters [1] {
Parameter #0 [ <required> $value ]
}
- - Return [ Decimal\Decimal ]
+ - Return [ Decimal\Number ]
}
Method [ <internal:decimal> public method rem ] {
@@ -98,96 +369,111 @@ Extension [ <persistent> extension #109 decimal version 1.3.1 ] {
- Parameters [1] {
Parameter #0 [ <required> $value ]
}
- - Return [ Decimal\Decimal ]
+ - Return [ Decimal\Number ]
}
- Method [ <internal:decimal> public method mod ] {
+ Method [ <internal:decimal, overwrites Decimal\Number, prototype Decimal\Number> public method mod ] {
- Parameters [1] {
Parameter #0 [ <required> $value ]
}
- - Return [ Decimal\Decimal ]
+ - Return [ Decimal\Number ]
}
- Method [ <internal:decimal> public method pow ] {
+ Method [ <internal:decimal, overwrites Decimal\Number, prototype Decimal\Number> public method pow ] {
- Parameters [1] {
Parameter #0 [ <required> $value ]
}
- - Return [ Decimal\Decimal ]
+ - 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> public method ln ] {
- Parameters [0] {
}
- - Return [ Decimal\Decimal ]
+ - Return [ Decimal\Number ]
}
Method [ <internal:decimal> public method exp ] {
- Parameters [0] {
}
- - Return [ Decimal\Decimal ]
+ - Return [ Decimal\Number ]
}
Method [ <internal:decimal> public method log10 ] {
- Parameters [0] {
}
- - Return [ Decimal\Decimal ]
+ - Return [ Decimal\Number ]
}
Method [ <internal:decimal> public method sqrt ] {
- Parameters [0] {
}
- - Return [ Decimal\Decimal ]
+ - Return [ Decimal\Number ]
}
- Method [ <internal:decimal> public method floor ] {
+ Method [ <internal:decimal, overwrites Decimal\Number, prototype Decimal\Number> public method floor ] {
- Parameters [0] {
}
- - Return [ Decimal\Decimal ]
+ - Return [ Decimal\Number ]
}
- Method [ <internal:decimal> public method ceil ] {
+ Method [ <internal:decimal, overwrites Decimal\Number, prototype Decimal\Number> public method ceil ] {
- Parameters [0] {
}
- - Return [ Decimal\Decimal ]
+ - Return [ Decimal\Number ]
}
- Method [ <internal:decimal> public method truncate ] {
+ Method [ <internal:decimal, overwrites Decimal\Number, prototype Decimal\Number> public method trunc ] {
- Parameters [0] {
}
- - Return [ Decimal\Decimal ]
+ - Return [ Decimal\Number ]
}
- Method [ <internal:decimal> public method round ] {
+ 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 ]
+ Parameter #1 [ <optional> int or NULL $mode ]
}
- - Return [ Decimal\Decimal ]
+ - Return [ Decimal\Number ]
}
- Method [ <internal:decimal> public method shift ] {
+ Method [ <internal:decimal> public method trim ] {
- - Parameters [1] {
- Parameter #0 [ <required> int $places ]
+ - Parameters [0] {
}
- - Return [ Decimal\Decimal ]
+ - Return [ Decimal\Number ]
}
- Method [ <internal:decimal> public method trim ] {
+ Method [ <internal:decimal> public method reduce ] {
- Parameters [0] {
}
- - Return [ Decimal\Decimal ]
+ - Return [ Decimal\Number ]
}
Method [ <internal:decimal> public method precision ] {
@@ -197,130 +483,440 @@ Extension [ <persistent> extension #109 decimal version 1.3.1 ] {
- Return [ int ]
}
- Method [ <internal:decimal> public method signum ] {
+ Method [ <internal:decimal, overwrites Decimal\Number, prototype Decimal\Number> public method abs ] {
- Parameters [0] {
}
- - Return [ int ]
+ - 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> public method parity ] {
+ Method [ <internal:decimal, overwrites Decimal\Number, prototype Decimal\Number> public method toInt ] {
- Parameters [0] {
}
- Return [ int ]
}
- Method [ <internal:decimal> public method abs ] {
+ 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> public method negate ] {
+ Method [ <internal:decimal, overwrites Decimal\Number, prototype Decimal\Number> public method toRational ] {
- Parameters [0] {
}
- - Return [ Decimal\Decimal ]
+ - Return [ Decimal\Rational ]
}
- Method [ <internal:decimal> public method isEven ] {
+ 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 ] {
+
+ - 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> public method isOdd ] {
+ Method [ <internal:decimal, overwrites Decimal\Number, prototype Decimal\Number> public method isOdd ] {
- Parameters [0] {
}
- Return [ bool ]
}
- Method [ <internal:decimal> public method isPositive ] {
+ Method [ <internal:decimal, overwrites Decimal\Number, prototype Decimal\Number> public method isPositive ] {
- Parameters [0] {
}
- Return [ bool ]
}
- Method [ <internal:decimal> public method isNegative ] {
+ Method [ <internal:decimal, overwrites Decimal\Number, prototype Decimal\Number> public method isNegative ] {
- Parameters [0] {
}
- Return [ bool ]
}
- Method [ <internal:decimal> public method isNaN ] {
+ Method [ <internal:decimal, overwrites Decimal\Number, prototype Decimal\Number> public method isNaN ] {
- Parameters [0] {
}
- Return [ bool ]
}
- Method [ <internal:decimal> public method isInf ] {
+ Method [ <internal:decimal, overwrites Decimal\Number, prototype Decimal\Number> public method isInf ] {
- Parameters [0] {
}
- Return [ bool ]
}
- Method [ <internal:decimal> public method isInteger ] {
+ Method [ <internal:decimal, overwrites Decimal\Number, prototype Decimal\Number> public method isInteger ] {
- Parameters [0] {
}
- Return [ bool ]
}
- Method [ <internal:decimal> public method isZero ] {
+ Method [ <internal:decimal, overwrites Decimal\Number, prototype Decimal\Number> public method isZero ] {
- Parameters [0] {
}
- Return [ bool ]
}
- Method [ <internal:decimal> public method toFixed ] {
+ 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 $rounding ]
+ Parameter #2 [ <optional> int or NULL $mode ]
}
- Return [ string ]
}
- Method [ <internal:decimal> public method toString ] {
+ 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 toString ] {
- Parameters [0] {
}
- Return [ string ]
}
- Method [ <internal:decimal> public method toInt ] {
+ Method [ <internal:decimal, overwrites Decimal\Number, prototype Decimal\Number> public method toInt ] {
- Parameters [0] {
}
- Return [ int ]
}
- Method [ <internal:decimal> public method toFloat ] {
+ Method [ <internal:decimal, overwrites Decimal\Number, prototype Decimal\Number> public method toFloat ] {
- Parameters [0] {
}
- Return [ float ]
}
- Method [ <internal:decimal> public method equals ] {
+ Method [ <internal:decimal, overwrites Decimal\Number, prototype Decimal\Number> public method toDecimal ] {
- Parameters [1] {
- Parameter #0 [ <required> $other ]
+ Parameter #0 [ <required> int $precision ]
}
- - Return [ bool ]
+ - Return [ Decimal\Decimal ]
}
- Method [ <internal:decimal> public method compareTo ] {
+ Method [ <internal:decimal, overwrites Decimal\Number, prototype Decimal\Number> public method toRational ] {
+
+ - Parameters [0] {
+ }
+ - Return [ Decimal\Rational ]
+ }
+
+ Method [ <internal:decimal, overwrites Decimal\Number, prototype Decimal\Number> public method compareTo ] {
- Parameters [1] {
Parameter #0 [ <required> $other ]
@@ -328,23 +924,32 @@ Extension [ <persistent> extension #109 decimal version 1.3.1 ] {
- Return [ int ]
}
- Method [ <internal:decimal> public method between ] {
+ Method [ <internal:decimal, overwrites Decimal\Number, prototype Decimal\Number> public method between ] {
- - Parameters [2] {
+ - 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 ]
- Parameter #1 [ <optional> $other ]
}
- Return [ bool ]
}
- Method [ <internal:decimal> public method __toString ] {
+ Method [ <internal:decimal, inherits Decimal\Number> public method __toString ] {
- Parameters [0] {
}
- Return [ string ]
}
- Method [ <internal:decimal, prototype JsonSerializable> public method jsonSerialize ] {
+ Method [ <internal:decimal, inherits Decimal\Number, prototype JsonSerializable> public method jsonSerialize ] {
- Parameters [0] {
}