I am writing a PHP library that has a Number class that uses arbitrary precision bcmath.
I have two questions:
How much slower is bcmath compared to using int and float built-in types?
bcmathhas an optional scale argument (default is 3 digits). For a general-purpose class that anyone can use, what would be a good level of accuracy? How do languages like Perl (which have arbitrary precision numbers) deal with the scale?
source
share