Content-Length: 279215 | pFad | http://github.com/postgrespro/postgres_cluster/commit/370e68ae1c0a8504a10b211a9c1d9e0ffa101259

C5 doc: adjust order of NUMERIC arguments to match syntax · postgrespro/postgres_cluster@370e68a · GitHub
Skip to content

Commit 370e68a

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 b6e94b8 commit 370e68a

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

doc/src/sgml/datatype.sgml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -515,14 +515,13 @@
515515

516516
<para>
517517
We use the following terms below: The
518-
<firstterm>scale</firstterm> of a <type>numeric</type> is the
519-
count of decimal digits in the fractional part, to the right of
520-
the decimal point. The <firstterm>precision</firstterm> of a
521-
<type>numeric</type> is the total count of significant digits in
522-
the whole number, that is, the number of digits to both sides of
523-
the decimal point. So the number 23.5141 has a precision of 6
524-
and a scale of 4. Integers can be considered to have a scale of
525-
zero.
518+
<firstterm>precision</firstterm> of a <type>numeric</type>
519+
is the total count of significant digits in the whole number,
520+
that is, the number of digits to both sides of the decimal point.
521+
The <firstterm>scale</firstterm> of a <type>numeric</type> is the
522+
count of decimal digits in the fractional part, to the right of the
523+
decimal point. So the number 23.5141 has a precision of 6 and a
524+
scale of 4. Integers can be considered to have a scale of zero.
526525
</para>
527526

528527
<para>

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres_cluster/commit/370e68ae1c0a8504a10b211a9c1d9e0ffa101259

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy