doc: adjust order of NUMERIC arguments to match syntax
authorBruce Momjian
Sun, 24 Jun 2018 22:07:00 +0000 (18:07 -0400)
committerBruce Momjian
Sun, 24 Jun 2018 22:07:00 +0000 (18:07 -0400)
Specifically, mention precision before scale

Reported-by: [email protected]
Discussion: https://postgr.es/m/152967566691.1268.1062965601465200209@wrigleys.postgresql.org

Backpatch-through: 9.3

doc/src/sgml/datatype.sgml

index cc54cc8a583d06d3824afad861d0418eb508255b..3d36cca5660a1d5b56606318533d11de197f09dd 100644 (file)
 
     
      We use the following terms below:  The
-     scale of a numeric is the
-     count of decimal digits in the fractional part, to the right of
-     the decimal point.  The precision of a
-     numeric is the total count of significant digits in
-     the whole number, that is, the number of digits to both sides of
-     the decimal point.  So the number 23.5141 has a precision of 6
-     and a scale of 4.  Integers can be considered to have a scale of
-     zero.
+     precision of a numeric
+     is the total count of significant digits in the whole number,
+     that is, the number of digits to both sides of the decimal point.
+     The scale of a numeric is the
+     count of decimal digits in the fractional part, to the right of the
+     decimal point.  So the number 23.5141 has a precision of 6 and a
+     scale of 4.  Integers can be considered to have a scale of zero.