Enhancement
Arbitrary precision decimal calculations
Issue description
When an occurrence type uses the datatype "decimal", the API converts that into a native PHP float, which uses a binary representation of the decimal number which is fast but limited in how accurately it computes the results of artithetic operations. PHP offers support for arbitrary precision through the procedural BC Math and the object-oriented Decimal extensions. See how Topincs can make use of it and provide an easy way to handle arbitrary precision either globally within one store, or specific to selected occurrence types.
Developer comments
Object-oriented Decimal would allow clearer and nicer signatures in domain classes, but also in the the programming interface page. It would be clear what is required and returned.
bcmath would mean more strings.
|
|
We are sorry
This page cannot be displayed in your browser. Use Firefox, Opera, Safari, or Chrome instead.