git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 9a84f29) | patch
Clarify the choice of rscale in numeric_sqrt().
Thu, 2 Feb 2023 09:41:22 +0000 (09:41 +0000)
Thu, 2 Feb 2023 09:41:22 +0000 (09:41 +0000)
commit 0736fc1ceb0659a9f73699910ac56603336daeee
Clarify the choice of rscale in numeric_sqrt().

Improve the comment explaining the choice of rscale in numeric_sqrt(),
and ensure that the code works consistently when other values of
NBASE/DEC_DIGITS are used.

Note that, in practice, we always expect DEC_DIGITS == 4, and this
does not change the computation in that case.

Joel Jacobson and Dean Rasheed

Discussion: https://postgr.es/m/06712c29-98e9-43b3-98da-f234d81c6e49%40app.fastmail.com
src/backend/utils/adt/numeric.c diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /