(PHP 8 >= 8.4.0)
A class for an arbitrary precision number. These objects support overloaded arithmetic and comparison operators.
Note:
This class is not affected by the bcmath.scale INI directive set in php.ini.
Note:
The behavior of an overloaded operator is the same as specifying
nullfor thescaleparameter on the corresponding method.
$exponent, BcMath\Number|string|int $modulus, ?int $scale = null): BcMath\Number$precision = 0, RoundingMode $mode = RoundingMode::HalfAwayFromZero): BcMath\NumberA string representation of an arbitrary precision number.
The scale value currently set on the object.
For objects resulting from calculations, this value is automatically computed and set,
unless the scale parameter was set in the calculation method.