Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 059e4ee

Browse filesBrowse 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 aca17fe commit 059e4ee
Copy full SHA for 059e4ee

File tree

Expand file treeCollapse file tree

1 file changed

+8
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+8
-0
lines changed

‎doc/src/sgml/func.sgml

Copy file name to clipboardExpand all lines: doc/src/sgml/func.sgml
+8Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8562,6 +8562,14 @@ SELECT regexp_match('abc01234xyz', '(?:(.*?)(\d+)(.*)){1,1}');
85628562
</para>
85638563
</listitem>
85648564

8565+
<listitem>
8566+
<para>
8567+
If the format provides fewer fractional digits than the number being
8568+
formatted, <function>to_char()</function> will round the number to
8569+
the specified number of fractional digits.
8570+
</para>
8571+
</listitem>
8572+
85658573
<listitem>
85668574
<para>
85678575
The pattern characters <literal>S</literal>, <literal>L</literal>, <literal>D</literal>,

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.