Skip to content

Commit 037768c

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 ae36661 commit 037768c

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
@@ -508,15 +508,14 @@
508508
</para>
509509

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

522521
<para>

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy