Brick\Math

Namespaces Summary
Brick\Math\Exception
Classes Summary
BigDecimal Immutable, arbitrary-precision signed decimal numbers.
BigInteger An arbitrary-size integer. All methods accepting a number as a parameter accept either a BigInteger instance, an integer, or a string representing an arbitrary size integer.
BigNumber Common interface for arbitrary-precision rational numbers.
BigRational An arbitrarily large rational number. This class is immutable.
RoundingMode Specifies a rounding behavior for numerical operations capable of discarding precision. Each rounding mode indicates how the least significant returned digit of a rounded result is to be calculated. If fewer digits are returned than the digits needed to represent the exact numerical result, the discarded digits will be referred to as the discarded fraction regardless the digits' contribution to the value of the number. In other words, considered as a numerical value, the discarded fraction could have an absolute value greater than one.