summaryrefslogtreecommitdiff
path: root/doc/src
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2018-06-24 18:07:00 -0400
committerBruce Momjian <bruce@momjian.us>2018-06-24 18:07:00 -0400
commit6350dcc1f43154d404f52ab4e891ebecef0c2115 (patch)
treef0c91498e7f29892b13e906d48653d2da71eb9dc /doc/src
parentc1975c1af7c2120277c57b1f40996b5d94cf22f6 (diff)
doc: adjust order of NUMERIC arguments to match syntax
Specifically, mention precision before scale Reported-by: claytonjsalem@gmail.com Discussion: https://postgr.es/m/152967566691.1268.1062965601465200209@wrigleys.postgresql.org Backpatch-through: 9.3
Diffstat (limited to 'doc/src')
-rw-r--r--doc/src/sgml/datatype.sgml15
1 files changed, 7 insertions, 8 deletions
diff --git a/doc/src/sgml/datatype.sgml b/doc/src/sgml/datatype.sgml
index 2cfba1d36d2..6b480f465b0 100644
--- a/doc/src/sgml/datatype.sgml
+++ b/doc/src/sgml/datatype.sgml
@@ -515,14 +515,13 @@
<para>
We use the following terms below: The
- <firstterm>scale</firstterm> of a <type>numeric</type> is the
- count of decimal digits in the fractional part, to the right of
- the decimal point. The <firstterm>precision</firstterm> of a
- <type>numeric</type> 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.
+ <firstterm>precision</firstterm> of a <type>numeric</type>
+ 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 <firstterm>scale</firstterm> of a <type>numeric</type> 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.
</para>
<para>