Doc: add example of round(v, s) with negative s.

Tom Lane <tgl@sss.pgh.pa.us>

Commit: a109a0bb50ad47812b8818e9c98e4f311672d659
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2022-12-01T17:26:12Z
Releases: 16.0
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

Files

PathChange+/−
doc/src/sgml/func.sgml modified +4 −0

Documentation touched

Discussion