doc: mention that to_char() values are rounded
authorBruce Momjian
Wed, 6 Sep 2023 20:52:24 +0000 (16:52 -0400)
committerBruce 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

index b8736c3616296c5bc7506e0145a6aeb26b63eb8c..d0686a1293b425b5c851a3270e6e1979f183b1b4 100644 (file)
@@ -8446,6 +8446,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 SLD,