dbal
dbal copied to clipboard
Use the BcMath\Number as new Type to work easier with arbitrary precision numbers
Feature Request
What
Create a new Type to map a database column to the BcMath\Number class available since php 8.4
Why
The BcMath\Number class facilitates manipulation, calculations and comparisons between numbers. It would be nice to map a database column to this object. This way the developers could work directly with this new php object.
How
Create a new Type. It could use the sql declaration the DecimalType as it would share the same database mapping definition with precision and scale.
The new number class indeed looks like a good fit for the decimal type.
#6686