27.01.2018 20:18, Mark Rotteveel wrote:

I'm implementing the new precision 34 decimal/numeric support in Jaybird, and I notice that the underlying Decimal128 is used as just an integer container, instead of already applying an appropriate exponent for the scale. This was a bit of a surprise to me.

Similar to how int16/int32/int64 is used for NUMERIC/DECIMAL with precision <= 18.

Why was this implementation chosen?

To keep the existing logic that deals with exact numerics inside the engine.

I believe Alex will comment on other questions you've raised.


Dmitry

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel

Reply via email to