mirror of
https://github.com/postgres/postgres.git
synced 2025-05-09 18:21:05 +03:00
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
This commit is contained in:
parent
afa4a4f764
commit
e10799aa25
@ -1598,6 +1598,10 @@ repeat('Pg', 4) <returnvalue>PgPgPgPg</returnvalue>
|
|||||||
<para>
|
<para>
|
||||||
<literal>round(42.4382, 2)</literal>
|
<literal>round(42.4382, 2)</literal>
|
||||||
<returnvalue>42.44</returnvalue>
|
<returnvalue>42.44</returnvalue>
|
||||||
|
</para>
|
||||||
|
<para>
|
||||||
|
<literal>round(1234.56, -1)</literal>
|
||||||
|
<returnvalue>1230</returnvalue>
|
||||||
</para></entry>
|
</para></entry>
|
||||||
</row>
|
</row>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user