Enhancement in precision of calculations with NUMERIC/DECIMAL [CORE4409] #4731
Submitted by: @WarmBooter
The way Firebird deals with the precision of the results of calculations involving multiple arguments can easily cause overflows, specially in maths/divs, when the precision of the result is the sum of the precision of the arguments, what can easily extrapolate the actual limits of the currently numeric/decimal datatypes. Also, some care is needed in the intermediate calculations, to avoid loss of precision and overflows.
====== Test Details ======
::: NB :::
The text was updated successfully, but these errors were encountered:
Commented by: @pavel-zotov
How to restore database 'decfloat.gbak' ?
C:\MIX\firebird\fb40\gbak -z -c -v C:\MIX\firebird\QA\fbt-repo\tmp\c4409-decfloat.gbak /:C:\MIX\firebird\QA\fbt-repo\tmp\c4409-decfloat.fdb 1>c4409-decfloat.log 2>&1
gbak:gbak version WI-T188.8.131.520 Firebird 4.0 Unstable