Skip to content

Commit 21ba0b4

Browse files
committed
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
1 parent e861636 commit 21ba0b4

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

doc/src/sgml/datatype.sgml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -506,15 +506,14 @@
506506
</para>
507507

508508
<para>
509-
We use the following terms below: The
510-
<firstterm>scale</firstterm> of a <type>numeric</type> is the
511-
count of decimal digits in the fractional part, to the right of
512-
the decimal point. The <firstterm>precision</firstterm> of a
513-
<type>numeric</type> is the total count of significant digits in
514-
the whole number, that is, the number of digits to both sides of
515-
the decimal point. So the number 23.5141 has a precision of 6
516-
and a scale of 4. Integers can be considered to have a scale of
517-
zero.
509+
We use the following terms below: the
510+
<firstterm>precision</firstterm> of a <type>numeric</type>
511+
is the total count of significant digits in the whole number,
512+
that is, the number of digits to both sides of the decimal point.
513+
The <firstterm>scale</firstterm> of a <type>numeric</type> is the
514+
count of decimal digits in the fractional part, to the right of the
515+
decimal point. So the number 23.5141 has a precision of 6 and a
516+
scale of 4. Integers can be considered to have a scale of zero.
518517
</para>
519518

520519
<para>

0 commit comments

Comments
 (0)