Add information about format modifiers that apply to numeric formats.
authorPeter Eisentraut
Tue, 26 Feb 2008 15:32:30 +0000 (15:32 +0000)
committerPeter Eisentraut
Tue, 26 Feb 2008 15:32:30 +0000 (15:32 +0000)
These were previously only documented in the context of date/time formats.

doc/src/sgml/func.sgml

index 340efac6556ecb70139621c58ccc4ba0be4198f6..b362d8ac0341b2bf1fd6428017515a078b0adeb5 100644 (file)
@@ -1,4 +1,4 @@
-
+
 
  
   Functions and Operators
@@ -5320,6 +5320,45 @@ SELECT SUBSTRING('XY1234Z', 'Y*?([0-9]{1,3})');
     
       
 
+   
+    Certain modifiers can be applied to any template pattern to alter its
+    behavior.  For example, FM9999
+    is the 9999 pattern with the
+    FM modifier.
+     shows the
+    modifier patterns for numeric formatting.
+   
+
+    
+     Template Pattern Modifiers for Numeric Formatting
+     
+      
+       
+        Modifier
+        Description
+        Example
+       
+      
+      
+       
+        FM prefix
+        fill mode (suppress padding blanks and zeroes)
+        FM9999
+       
+       
+        TH suffix
+        uppercase ordinal number suffix
+        999TH
+          
+       
+        th suffix
+        lowercase ordinal number suffix
+        999th
+       
+      
+     
+    
+
   
     shows some
    examples of the use of the to_char function.