]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Doc: add example of round(v, s) with negative s.
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 1 Dec 2022 17:26:12 +0000 (12:26 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 1 Dec 2022 17:26:12 +0000 (12:26 -0500)
commite10799aa252c2232a3d4f73f4875532423f3f7b4
treec7b75e47d31ad6cff65eb3069f5d70ae07ad6e7c
parentafa4a4f764cca2d0232d9f12d0a268c3804afce7
Doc: add example of round(v, s) with negative s.

This has always worked, but you'd be unlikely to guess it
from the documentation.  Add an example showing it.

Lack of docs noted by David Johnston.  Back-patch to v13;
the documentation layout we used before that was not very
amenable to squeezing in multiple examples.

Discussion: https://postgr.es/m/CAKFQuwZ4Vy1Xty0G5Ok+ot=NDrU3C6hzF1JwUk-FEkwe3V9_RA@mail.gmail.com
doc/src/sgml/func.sgml