The BcMath\Number class
A class for an arbitrary precision number. These objects support overloaded arithmetic and comparison operators.
Intro
A class for an arbitrary precision number. These objects support overloaded arithmetic and comparison operators.
This class is not affected by the bcmath.scale INI directive set in Ini.
The behavior of an overloaded operator is the same as specifying null for the scale parameter on the corresponding method.
Class synopsis
BcMathfinalreadonlyNumberimplementsStringablePropertiespublicstringvaluepublicintscaleMethods
Properties
valueA string representation of an arbitrary precision number.
scaleThe scale value currently set on the object. For objects resulting from calculations, this value is automatically computed and set, unless the
scaleparameter was set in the calculation method.
Number