Skip to content

Commit d6f90b3

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 caeb4cf commit d6f90b3

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
@@ -6933,6 +6933,14 @@ SELECT regexp_match('abc01234xyz', '(?:(.*?)(\d+)(.*)){1,1}');
69336933
</para>
69346934
</listitem>
69356935

6936+
<listitem>
6937+
<para>
6938+
If the format provides fewer fractional digits than the number being
6939+
formatted, <function>to_char()</function> will round the number to
6940+
the specified number of fractional digits.
6941+
</para>
6942+
</listitem>
6943+
69366944
<listitem>
69376945
<para>
69386946
The pattern characters <literal>S</literal>, <literal>L</literal>, <literal>D</literal>,

0 commit comments

Comments
 (0)