Skip to content

Commit 253bc4e

Browse files
committed
doc: mention that to_char() values are rounded
Reported-by: barsikdacat@gmail.com Diagnosed-by: Laurenz Albe Discussion: https://postgr.es/m/168991536429.626.9957835774751337210@wrigleys.postgresql.org Author: Laurenz Albe Backpatch-through: 11
1 parent 3ddc889 commit 253bc4e

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

doc/src/sgml/func.sgml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8505,6 +8505,14 @@ SELECT regexp_match('abc01234xyz', '(?:(.*?)(\d+)(.*)){1,1}');
85058505
</para>
85068506
</listitem>
85078507

8508+
<listitem>
8509+
<para>
8510+
If the format provides fewer fractional digits than the number being
8511+
formatted, <function>to_char()</function> will round the number to
8512+
the specified number of fractional digits.
8513+
</para>
8514+
</listitem>
8515+
85088516
<listitem>
85098517
<para>
85108518
The pattern characters <literal>S</literal>, <literal>L</literal>, <literal>D</literal>,

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy