projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3ddc889
)
doc: mention that to_char() values are rounded
author
Bruce Momjian
Wed, 6 Sep 2023 20:52:24 +0000
(16:52 -0400)
committer
Bruce Momjian
Wed, 6 Sep 2023 20:52:24 +0000
(16:52 -0400)
Reported-by:
[email protected]
Diagnosed-by: Laurenz Albe
Discussion: https://postgr.es/m/
168991536429
.626.
9957835774751337210
@wrigleys.postgresql.org
Author: Laurenz Albe
Backpatch-through: 11
doc/src/sgml/func.sgml
patch
|
blob
|
blame
|
history
diff --git
a/doc/src/sgml/func.sgml
b/doc/src/sgml/func.sgml
index b94827674c9499f2f44f5b38b47f653091b178a0..61f3397f39d73f6bd81fcf3b545ef2c230f0c34e 100644
(file)
--- a/
doc/src/sgml/func.sgml
+++ b/
doc/src/sgml/func.sgml
@@
-8505,6
+8505,14
@@
SELECT regexp_match('abc01234xyz', '(?:(.*?)(\d+)(.*)){1,1}');
+
+
+ If the format provides fewer fractional digits than the number being
+ formatted,
to_char()
will round the number to
+ the specified number of fractional digits.
+
+
+
The pattern characters
S
,
L
,
D
,