mirror of
https://github.com/postgres/postgres.git
synced 2025-07-28 23:42:10 +03:00
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
This commit is contained in:
@ -515,14 +515,13 @@
|
|||||||
|
|
||||||
<para>
|
<para>
|
||||||
We use the following terms below: The
|
We use the following terms below: The
|
||||||
<firstterm>scale</firstterm> of a <type>numeric</type> is the
|
<firstterm>precision</firstterm> of a <type>numeric</type>
|
||||||
count of decimal digits in the fractional part, to the right of
|
is the total count of significant digits in the whole number,
|
||||||
the decimal point. The <firstterm>precision</firstterm> of a
|
that is, the number of digits to both sides of the decimal point.
|
||||||
<type>numeric</type> is the total count of significant digits in
|
The <firstterm>scale</firstterm> of a <type>numeric</type> is the
|
||||||
the whole number, that is, the number of digits to both sides of
|
count of decimal digits in the fractional part, to the right of the
|
||||||
the decimal point. So the number 23.5141 has a precision of 6
|
decimal point. So the number 23.5141 has a precision of 6 and a
|
||||||
and a scale of 4. Integers can be considered to have a scale of
|
scale of 4. Integers can be considered to have a scale of zero.
|
||||||
zero.
|
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
<para>
|
<para>
|
||||||
|
Reference in New Issue
Block a user