Skip to content
Snippets Groups Projects
Commit 21ba0b44 authored by Bruce Momjian's avatar Bruce Momjian
Browse files

doc: adjust order of NUMERIC arguments to match syntax


Specifically, mention precision before scale

Reported-by: default avatar <claytonjsalem@gmail.com>

Discussion: https://postgr.es/m/152967566691.1268.1062965601465200209@wrigleys.postgresql.org

Backpatch-through: 9.3
parent e8616362
No related branches found
No related tags found
No related merge requests found
......@@ -506,15 +506,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>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment