dbal icon indicating copy to clipboard operation
dbal copied to clipboard

Use the BcMath\Number as new Type to work easier with arbitrary precision numbers

Open nio-dtp opened this issue 1 year ago • 2 comments

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.

nio-dtp avatar Dec 08 '24 18:12 nio-dtp

The new number class indeed looks like a good fit for the decimal type.

derrabus avatar Jan 05 '25 17:01 derrabus

#6686

derrabus avatar Jan 05 '25 20:01 derrabus