diff options
author | Bruce Momjian <bruce@momjian.us> | 2018-06-24 18:07:00 -0400 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2018-06-24 18:07:00 -0400 |
commit | 037768cf75707cb00ef5c1c1d70b0c6a6800206b (patch) | |
tree | a2aa5af953458ce1d71854473644570be529559b | |
parent | ae36661661c5ffbb06535a9f7aa9b12dfa1fb98c (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
-rw-r--r-- | doc/src/sgml/datatype.sgml | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/doc/src/sgml/datatype.sgml b/doc/src/sgml/datatype.sgml index 56eaa962a4b..5f45db24886 100644 --- a/doc/src/sgml/datatype.sgml +++ b/doc/src/sgml/datatype.sgml @@ -508,15 +508,14 @@ </para> <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. + We use the following terms below: 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. + 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> |