mini\Util\Math\NumberInterface
abstract
interface
Documentation
Common read interface for arbitrary precision numbers
Implemented by BigInt, Decimal, and Expr. This is the minimal interface for external consumers that need to read values.
Arithmetic operations are NOT part of this interface because each type has different acceptable operand types:
- BigInt accepts: BigInt|int|string
- Decimal accepts: BigInt|int|float|string
- Expr accepts: BigInt|Decimal|Expr|int|float|string
Inheritance
Implements:
Stringable
Methods (2)
Number of decimal places
Convert to string representation