flow
flow copied to clipboard
MathContext
As pointed out in #1322, most of the mathematical operations (comparisons/sub/add, etc) are handled natively by PHP. But since PHP does not come with a Decimal type it can't be used like that.
The solution is to create a MathContext that would be responsible for all mathematical operations which would become a single point of change once we introduce DecimalType.