From: Bruce Momjian Date: Sun, 24 Jun 2018 22:07:00 +0000 (-0400) Subject: doc: adjust order of NUMERIC arguments to match syntax X-Git-Tag: REL9_3_24~30 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0a140ab32f4993917f81f07531752c41246fcac1;p=thirdparty%2Fpostgresql.git 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 --- diff --git a/doc/src/sgml/datatype.sgml b/doc/src/sgml/datatype.sgml index be9b868285c..6297e3a5bb7 100644 --- a/doc/src/sgml/datatype.sgml +++ b/doc/src/sgml/datatype.sgml @@ -494,15 +494,14 @@ - 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. + We use the following terms below: 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. + 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.